Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.35MB] [CPU: ▼10.32ms] Passed 4 tests
Analyzing server-side resources used by nicen-localize-image
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 41.60 ▼1.63 |
Dashboard /wp-admin | 3.60 ▲0.25 | 52.49 ▼12.18 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 53.27 ▲2.71 |
Add New Post /wp-admin/post-new.php | 3.75 ▼2.14 | 73.93 ▼30.17 |
Media Library /wp-admin/upload.php | 3.53 ▲0.29 | 46.22 ▲5.01 |
Server storage [IO: ▲1.84MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 32 new options
New WordPress options |
---|
nicen_make_plugin_local |
nicen_make_plugin_private |
nicen_make_plugin_interval |
nicen_make_save_as_thumb |
nicen_make_plugin_path |
widget_theysaidso_widget |
nicen_make_publish_white |
db_upgraded |
nicen_make_plugin_add_thumb |
nicen_make_plugin_alt_type |
... |
Browser metrics Passed 4 tests
A check of browser resources used by nicen-localize-image
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.31 ▼0.87 | 1.74 ▼0.15 | 42.33 ▲0.21 |
Dashboard /wp-admin | 2,222 ▲34 | 5.89 ▲0.88 | 108.49 ▲2.93 | 43.65 ▼3.05 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.01 ▼0.00 | 37.46 ▼1.78 | 39.30 ▼0.50 |
Add New Post /wp-admin/post-new.php | 3,196 ▲1,674 | 7.86 ▼15.66 | 188.99 ▼487.60 | 80.51 ▲19.74 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.31 ▲0.10 | 100.44 ▼16.22 | 49.36 ▲0.08 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 32 options
- nicen_make_plugin_save_result
- nicen_make_save_as_thumb
- nicen_make_plugin_add_thumb
- nicen_make_plugin_alt_type
- nicen_make_publish_time_start
- nicen_make_plugin_record_log
- nicen_make_plugin_add_domain
- can_compress_scripts
- nicen_make_publish_white
- nicen_make_plugin_private
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nicen-localize-image/class/crontab.php:28
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/nicen-localize-image/admin/common.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nicen-localize-image/admin/setting.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function nicen_getAutoInfo() in wp-content/plugins/nicen-localize-image/config.php:147
- > PHP Warning
Use of undefined constant nicen_make_CONFIG - assumed 'nicen_make_CONFIG' (this will throw an Error in a future version of PHP) in wp-content/plugins/nicen-localize-image/admin/install.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function nicen\\local\\images\\plugin_dir_path() in wp-content/plugins/nicen-localize-image/nicen-localize-image.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nicen-localize-image/admin/when-post.php:191
- > PHP Warning
Use of undefined constant nicen_make_CONFIG - assumed 'nicen_make_CONFIG' (this will throw an Error in a future version of PHP) in wp-content/plugins/nicen-localize-image/admin/common.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/nicen-localize-image/admin/preload.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nicen-localize-image/response/response.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: No valid plugin tags found
nicen-localize-image/nicen-localize-image.php 92% from 13 tests
The main PHP file in "nicen-localize-image" ver. 1.4.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 210 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin8,167 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 961 | 692 | 6,054 |
PHP | 16 | 586 | 719 | 1,729 |
Sass | 1 | 39 | 0 | 138 |
CSS | 1 | 24 | 1 | 128 |
Markdown | 1 | 47 | 0 | 103 |
SVG | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 19.80 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 5 | 16.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 36 | |
▷ Named functions | 32 | 88.89% |
▷ Anonymous functions | 4 | 11.11% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin