Benchmarks
Plugin footprint 48% 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.86MB] [CPU: ▼38.82ms] Passed 4 tests
Server-side resources used by Instruct
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.71 ▼4.81 |
Dashboard /wp-admin | 3.10 ▼0.25 | 25.21 ▼41.88 |
Posts /wp-admin/edit.php | 3.10 ▼0.26 | 24.75 ▼28.88 |
Add New Post /wp-admin/post-new.php | 3.10 ▼2.79 | 22.80 ▼69.75 |
Media Library /wp-admin/upload.php | 3.10 ▼0.13 | 21.14 ▼14.77 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_instruct_step |
wp_instruct_progress |
wp_instruct |
New WordPress options |
---|
theysaidso_admin_options |
diy_db_version |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Instruct
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲153 | 13.66 ▼0.51 | 6.00 ▲4.08 | 44.09 ▲0.45 |
Dashboard /wp-admin | 2,234 ▲31 | 5.81 ▼0.08 | 102.51 ▼7.58 | 37.61 ▼2.81 |
Posts /wp-admin/edit.php | 2,095 ▼8 | 2.02 ▼0.01 | 38.44 ▼2.00 | 38.45 ▲1.81 |
Add New Post /wp-admin/post-new.php | 6,255 ▲4,710 | 25.80 ▲2.61 | 861.22 ▲233.55 | 60.85 ▼12.27 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.24 ▲0.02 | 99.21 ▼16.50 | 46.62 ▼5.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/instruct/admin-menu.php+7
Use of undefined constant diy_menu_main - assumed 'diy_menu_main' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_instruct
- wp_instruct_progress
- wp_instruct_step
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- diy_db_version
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/instruct/admin-menu.php:4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/instruct/admin-table.php on line 2
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/instruct/instruct.php on line 21
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/instruct/admin-table.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/instruct/admin-table.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/instruct/admin-menu.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/instruct/shortcode.php:87
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/instruct/instruct.php on line 20
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/instruct/instruct.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: guide, manual, directions, instruction, instructables...
instruct/instruct.php Passed 13 tests
This is the main PHP file of "Instruct" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
83 characters long description:
Easily produce step-by-step instructions with images to include in pages and posts.
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
Good job! No executable or dangerous file extensions detected707 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 146 | 153 | 623 |
CSS | 2 | 15 | 13 | 47 |
JavaScript | 1 | 12 | 13 | 37 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 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 | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected