Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.81ms] Passed 4 tests
A check of server-side resources used by Addons Espania
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.33 ▲0.76 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.15 ▼1.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.73 ▼4.58 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.49 ▼20.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.11 ▼1.36 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 208 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Addons Espania
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.32 ▼1.44 | 3.72 ▲2.00 | 38.80 ▼7.35 |
Dashboard /wp-admin | 2,200 ▲12 | 5.81 ▲0.95 | 102.14 ▼6.32 | 41.10 ▼3.02 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.01 | 36.92 ▼2.87 | 35.80 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.14 ▲0.15 | 662.46 ▲37.28 | 49.54 ▼1.68 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.21 ▲0.01 | 98.74 ▲1.31 | 41.28 ▼2.39 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 8× 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/addons-espania/widgets/widget-flickr.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/addons-espania/shortcodes/shortcodes.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-espania/widgets/widget-facebook-box.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-espania/widgets/widget-social-icons.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/addons-espania/meta-box/metaboxes-init.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-espania/widgets/widget-video.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addons-espania/shortcodes/shortcodes-init.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/addons-espania/addons-espania.php:11
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: widget, plugin, shortcode generator, shortcode, taxonomy...
addons-espania/addons-espania.php 92% from 13 tests
This is the main PHP file of "Addons Espania" version 1.02, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected7,998 lines of code in 188 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 129 | 151 | 355 | 3,743 |
PHP | 41 | 658 | 1,394 | 3,103 |
CSS | 17 | 97 | 110 | 944 |
Markdown | 1 | 50 | 0 | 208 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 36 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 153 | |
▷ Static methods | 127 | 83.01% |
▷ Public methods | 153 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
meta-box/img/jqueryui/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
meta-box/css/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
meta-box/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
meta-box/img/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
meta-box/img/jqueryui/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |