Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.76ms] Passed 4 tests
Server-side resources used by binaryImagemagick
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.68 ▼4.62 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.69 ▼6.73 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.08 ▲1.37 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.86 ▼13.06 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.44 ▲4.12 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for binaryImagemagick
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.51 ▲0.13 | 1.77 ▲0.10 | 37.71 ▼5.07 |
Dashboard /wp-admin | 2,195 ▲21 | 5.56 ▼0.02 | 80.84 ▼5.88 | 38.26 ▼2.28 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▲0.02 | 34.81 ▲0.68 | 33.82 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.37 ▲0.27 | 632.17 ▼54.07 | 56.55 ▲2.97 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▼0.06 | 99.14 ▼14.07 | 40.71 ▼5.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(ABSPATHWPINC/class-wp-image-editor.php): failed to open stream: No such file or directory in wp-content/plugins/binaryimagemagick/Org_Heigl/BinaryImagemagick.php on line 34
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/binaryimagemagick/Org_Heigl/BinaryImagemagick.php on line 34
- > PHP Warning
require_once(ABSPATHWPINC/class-wp-image-editor.php): failed to open stream: No such file or directory in wp-content/plugins/binaryimagemagick/Org_Heigl/BinaryImagemagick.php on line 34
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-wp-image-editor.php' (include_path='.:/usr/share/php') in wp-content/plugins/binaryimagemagick/Org_Heigl/BinaryImagemagick.php on line 34
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/binaryimagemagick/Org_Heigl/BinaryImagemagick.php on line 34
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/binaryimagemagick/Org_Heigl/BinaryImagemagick.php on line 34
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/binaryimagemagick/Org_Heigl/BinaryImagemagick.php on line 34
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/class-wp-image-editor.php' (include_path='.:/usr/share/php') in wp-content/plugins/binaryimagemagick/Org_Heigl/BinaryImagemagick.php on line 34
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
3 plugin tags: imagemagick, imagick, open_basedir
binaryimagemagick/binaryImagemagick.php 85% from 13 tests
"binaryImagemagick" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("binaryimagemagick.php" instead of "binaryImagemagick.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin220 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 79 | 230 | 213 |
Markdown | 1 | 6 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 3 | 17.65% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 2 | 11.76% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin