Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲2.14ms] Passed 4 tests
Server-side resources used by Wordpress Code Checker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 51.88 ▲10.06 |
Dashboard /wp-admin | 3.34 ▲0.03 | 57.39 ▲3.78 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 58.41 ▲7.49 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 107.22 ▲0.89 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 42.90 ▼3.60 |
wcChecker /wp-admin/admin.php?page=wc-checker | 3.23 | 35.31 |
Install Demo /wp-admin/admin.php?page=install_demo | 3.23 | 39.08 |
Security Code(s) /wp-admin/edit.php?post_type=sc | 3.30 | 42.66 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
wcc_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Wordpress Code Checker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲118 | 13.27 ▼1.11 | 2.63 ▲0.85 | 53.93 ▲12.02 |
Dashboard /wp-admin | 2,240 ▲52 | 5.87 ▼0.04 | 147.16 ▲37.13 | 60.86 ▲5.07 |
Posts /wp-admin/edit.php | 2,126 ▲34 | 2.06 ▲0.05 | 49.47 ▲12.92 | 44.41 ▲11.42 |
Add New Post /wp-admin/post-new.php | 1,426 ▼94 | 17.76 ▼3.34 | 726.75 ▼46.30 | 56.35 ▼25.20 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.21 ▲0.05 | 136.80 ▼6.09 | 61.78 ▼5.82 |
wcChecker /wp-admin/admin.php?page=wc-checker | 905 | 2.04 | 30.25 | 39.72 |
Install Demo /wp-admin/admin.php?page=install_demo | 908 | 2.02 | 29.44 | 37.85 |
Security Code(s) /wp-admin/edit.php?post_type=sc | 1,087 | 2.00 | 47.46 | 38.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-code-checker/inc/metabox.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in wp-code-checker/assets to your readme.txt
wp-code-checker/wordpress-code-checker.php 85% from 13 tests
"Wordpress Code Checker" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-code-checker.php" instead of "wordpress-code-checker.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin516 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 224 | 85 | 428 |
CSS | 1 | 7 | 2 | 80 |
Markdown | 1 | 4 | 0 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 6 | 85.71% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin