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.00MB] [CPU: ▼2.93ms] Passed 4 tests
Analyzing server-side resources used by emulsion addons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.13 ▼5.93 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.23 ▼3.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.97 ▲0.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.05 ▼3.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 34.03 ▲2.10 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for emulsion addons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▼0.07 | 1.67 ▼0.04 | 42.45 ▼5.45 |
Dashboard /wp-admin | 2,195 ▲21 | 5.63 ▲0.02 | 85.40 ▼9.74 | 41.17 ▲1.99 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.00 ▼0.02 | 38.75 ▲2.30 | 35.27 ▲4.22 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.12 ▲0.11 | 586.51 ▼18.68 | 58.12 ▲3.53 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.17 ▼0.02 | 98.16 ▲1.51 | 43.75 ▲2.91 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/emulsion-addons/documents/examples.php
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/emulsion-addons/emulsion.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function emulsion_get_theme_operation_mode() in wp-content/plugins/emulsion-addons/documents/templatetag.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/emulsion-addons/includes/wp-scss.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function emulsion_get_theme_operation_mode() in wp-content/plugins/emulsion-addons/documents/customizer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/emulsion-addons/includes/functions.php:492
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emulsion-addons/includes/snippets.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emulsion-addons/documents/documents.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/emulsion-addons/documents/homepage.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function emulsion_get_theme_operation_mode() in wp-content/plugins/emulsion-addons/documents/embed.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emulsion-addons/includes/hooks.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Screenshot #1 (screenshot-1.png) image not found
emulsion-addons/emulsion.php 92% from 13 tests
"emulsion addons" version 3.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("emulsion-addons.php" instead of "emulsion.php")
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 plugin13,402 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 2,426 | 1,361 | 11,321 |
JavaScript | 2 | 238 | 171 | 1,278 |
CSS | 2 | 56 | 29 | 803 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 269 | |
▷ Named functions | 263 | 97.77% |
▷ Anonymous functions | 6 | 2.23% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin