Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.98ms] Passed 4 tests
A check of server-side resources used by Ceylon Extra
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.39 ▼1.78 |
Dashboard /wp-admin | 3.31 ▼0.03 | 42.89 ▼17.34 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.89 ▼0.77 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.25 ▼8.01 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.07 ▲4.55 |
Server storage [IO: ▲2.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Ceylon Extra
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 14.48 ▲0.17 | 1.78 ▲0.16 | 39.42 ▲0.14 |
Dashboard /wp-admin | 2,206 ▲18 | 4.83 ▼1.06 | 100.14 ▼0.82 | 36.66 ▼10.65 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.06 ▲0.07 | 37.51 ▲2.15 | 33.79 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.38 ▲5.77 | 655.73 ▲29.16 | 52.00 ▲1.95 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.03 | 92.45 ▼7.21 | 43.97 ▲1.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- 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
Even though everything seems fine, this is not 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
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/ecommerce-extra/inc/customizer/common.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ecommerce-extra/inc/customizer-repeater/inc/icons.php:11
- > PHP Fatal error
require(): Failed opening required 'ecommerce_extra_dir_pathinc/customizer-repeater/inc/customizer.php' (include_path='.:/usr/share/php') in wp-content/plugins/ecommerce-extra/inc/customizer-repeater/functions.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ecommerce-extra/inc/customizer-repeater/inc/customizer.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ecommerce-extra/inc/customizer.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/ecommerce-extra/inc/customizer/common.php:4
- > PHP Warning
require(ecommerce_extra_dir_pathinc/customizer-repeater/inc/customizer.php): failed to open stream: No such file or directory in wp-content/plugins/ecommerce-extra/inc/customizer-repeater/functions.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ecommerce-extra/ecommerce-extra.php:12
- > PHP Warning
Use of undefined constant ecommerce_extra_dir_path - assumed 'ecommerce_extra_dir_path' (this will throw an Error in a future version of PHP) in wp-content/plugins/ecommerce-extra/inc/customizer-repeater/functions.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ecommerce-extra/inc/actions.php:4
- > PHP Notice
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 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
6 plugin tags: responsive, e-commerce, page builder, customize, widgets...
ecommerce-extra/ecommerce-extra.php Passed 13 tests
"Ceylon Extra" version 0.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
91 characters long description:
Enhances eCommerce Plus theme with additional functionality such as customizer and widgets.
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
Everything looks great! No dangerous files found in this plugin8,018 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,959 |
CSS | 5 | 53 | 25 | 2,632 |
PHP | 8 | 229 | 66 | 1,974 |
JavaScript | 2 | 86 | 39 | 374 |
Markdown | 1 | 27 | 0 | 79 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 97.00 |
▷ Minimum class complexity | 97.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 11.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 33.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 66.67% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/empty.png | 27.33KB | 0.10KB | ▼ 99.64% |