Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.01ms] Passed 4 tests
This is a short check of server-side resources used by External image replace
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.02 | 45.50 ▲4.92 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.57 ▼3.70 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 42.23 ▼1.38 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.91 ▼5.67 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.98 ▲2.71 |
External image replace /wp-admin/tools.php?page=external_image_replace | 5.24 | 60.39 |
Server storage [IO: ▲1.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 213 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by External image replace
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.74 ▲0.37 | 1.76 ▼0.11 | 41.40 ▲1.52 |
Dashboard /wp-admin | 2,213 ▲28 | 5.85 ▼0.00 | 99.75 ▲1.00 | 38.73 ▼1.83 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.05 | 34.57 ▼3.50 | 30.94 ▼4.19 |
Add New Post /wp-admin/post-new.php | 1,537 ▲17 | 23.38 ▲0.24 | 657.33 ▲0.02 | 57.91 ▼1.17 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▲0.01 | 100.36 ▼6.18 | 43.78 ▼2.99 |
External image replace /wp-admin/tools.php?page=external_image_replace | 783 | 2.07 | 25.71 | 26.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- 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
The smoke test was a success, however most plugin functionality was not tested
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
- 83× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Compile_Shared_Inheritance' not found in wp-content/plugins/external-image-replace/smarty/sysplugins/smarty_internal_compile_block.php:16
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_ParseTree' not found in wp-content/plugins/external-image-replace/smarty/sysplugins/smarty_internal_parsetree_template.php:19
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Resource_File' not found in wp-content/plugins/external-image-replace/smarty/sysplugins/smarty_internal_resource_php.php:12
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/external-image-replace/smarty/sysplugins/smarty_internal_compile_capture.php:17
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Method_CompileAllTemplates' not found in wp-content/plugins/external-image-replace/smarty/sysplugins/smarty_internal_method_compileallconfig.php:12
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Compile_Assign' not found in wp-content/plugins/external-image-replace/smarty/sysplugins/smarty_internal_compile_append.php:17
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/external-image-replace/smarty/sysplugins/smarty_internal_compile_nocache.php:17
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Data' not found in wp-content/plugins/external-image-replace/smarty/sysplugins/smarty_data.php:18
- > PHP Warning
require_once(SMARTY_PLUGINS_DIRshared.literal_compiler_param.php): failed to open stream: No such file or directory in wp-content/plugins/external-image-replace/smarty/plugins/modifiercompiler.escape.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Template_Resource_Base' not found in wp-content/plugins/external-image-replace/smarty/sysplugins/smarty_template_cached.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: post, update content, update post
external-image-replace/external-image-replace.php Passed 13 tests
The principal PHP file in "External image replace" v. 1.0.8 is loaded by WordPress automatically on each request
80 characters long description:
Replace the external image in the posted article with the media library at once.
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
Everything looks great! No dangerous files found in this plugin17,663 lines of code in 206 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 200 | 2,468 | 11,182 | 17,389 |
Smarty | 2 | 21 | 0 | 184 |
JavaScript | 2 | 2 | 2 | 84 |
CSS | 2 | 2 | 2 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 15.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 165.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 169 | |
▷ Abstract classes | 12 | 7.10% |
▷ Concrete classes | 157 | 92.90% |
▷ Final classes | 0 | 0.00% |
Methods | 881 | |
▷ Static methods | 34 | 3.86% |
▷ Public methods | 838 | 95.12% |
▷ Protected methods | 24 | 2.72% |
▷ Private methods | 19 | 2.16% |
Functions | 65 | |
▷ Named functions | 60 | 92.31% |
▷ Anonymous functions | 5 | 7.69% |
Constants | 166 | |
▷ Global constants | 8 | 4.82% |
▷ Class constants | 158 | 95.18% |
▷ Public constants | 158 | 100.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