Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.52ms] Passed 4 tests
Server-side resources used by WP Centrico
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.96 ▲0.47 |
Dashboard /wp-admin | 3.37 ▲0.07 | 44.04 ▼1.06 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 46.07 ▼6.02 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.37 ▼15.45 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.47 ▲4.28 |
Woocommerce /wp-admin/admin.php?page=wp-centrico-woocommerce | 3.32 | 33.27 |
Settings /wp-admin/admin.php?page=wp-centrico | 3.27 | 33.76 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_centrico |
New WordPress options |
---|
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_centrico_widget |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Centrico: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.16 ▼1.20 | 1.73 ▼0.02 | 45.43 ▼0.29 |
Dashboard /wp-admin | 2,233 ▲45 | 5.85 ▼0.06 | 98.96 ▼4.50 | 39.19 ▼4.09 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.17 ▲0.16 | 38.61 ▼1.87 | 36.10 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,557 ▲24 | 23.38 ▲0.08 | 695.01 ▲25.50 | 58.67 ▼1.96 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.21 ▲0.01 | 109.78 ▲1.66 | 46.09 ▲3.38 |
Woocommerce /wp-admin/admin.php?page=wp-centrico-woocommerce | 703 | 1.53 | 6.58 | 16.52 |
Settings /wp-admin/admin.php?page=wp-centrico | 811 | 2.03 | 28.15 | 23.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_centrico_widget
- db_upgraded
- can_compress_scripts
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=wp-centrico-woocommerce
- > Error in wp-content/plugins/wp-centrico/includes/woocommerce/view/settings.php+28
Uncaught Error: Call to undefined function WC() in wp-content/plugins/wp-centrico/includes/woocommerce/view/settings.php:28
Stack trace:
#0 wp-content/plugins/wp-centrico/includes/centrico-settings.php(16): require()
#1 wp-includes/class-wp-hook.php(310): centrico_woocommerce_init()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
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 items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-centrico/includes/options-gui.php on line 13
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-centrico/includes/options-gui.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-centrico/includes/woocommerce/view/settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-centrico/includes/centrico-form.php:85
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-centrico/includes/centrico-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-centrico/wp-centrico.php:69
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-centrico/includes/centrico-widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-centrico/includes/woocommerce/view/subscribe.php:5
- > PHP Notice
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== wp-centrico ===
) - Donate link: Invalid URI ("")
wp-centrico/wp-centrico.php Passed 13 tests
The primary PHP file in "WP Centrico" version 1.1.5 is used by WordPress to initiate all plugin functionality
33 characters long description:
Simple Centrico subscription form
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
Good job! No executable or dangerous file extensions detected580 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 193 | 114 | 580 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 122.88KB | 34.34KB | ▼ 72.05% |
includes/images/logo.png | 32.53KB | 15.13KB | ▼ 53.49% |