Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/my-center-deals/my-center-deals.php+75
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.86MB] [CPU: ▼35.40ms] Passed 4 tests
An overview of server-side resources used by My Center Portal
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.67 | 12.51 ▼28.40 |
Dashboard /wp-admin | 3.26 ▼0.05 | 27.66 ▼21.06 |
Posts /wp-admin/edit.php | 3.26 ▼0.10 | 28.45 ▼19.61 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.62 | 26.84 ▼72.54 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 26.93 ▼2.13 |
Server storage [IO: ▲11.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 815 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
mcd_settings |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
mcd_settings-transients |
widget_recent-posts |
widget_recent-comments |
mcd_plugin_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for My Center Portal
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲91 | 13.23 ▼0.73 | 1.56 ▼0.30 | 37.20 ▼7.00 |
Dashboard /wp-admin | 2,226 ▲41 | 4.93 ▼0.95 | 95.50 ▼11.04 | 77.22 ▲35.10 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.00 ▼0.05 | 34.47 ▼6.34 | 32.19 ▼3.34 |
Add New Post /wp-admin/post-new.php | 1,534 ▼8 | 17.56 ▼0.58 | 715.77 ▲94.91 | 66.66 ▲9.53 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.24 ▲0.06 | 97.95 ▲0.63 | 64.35 ▲18.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/my-center-deals/inc/Shortcodes.php+369
Undefined index: deals_single_page_template
- The uninstall procedure has failed, leaving 9 options in the database
- mcd_settings
- mcd_settings-transients
- mcd_plugin_version
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 75× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/my-center-deals/templates/instagram/gallery.php:2
- > PHP Notice
Undefined variable: mcd_settings in wp-content/plugins/my-center-deals/assets/dynamic.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/my-center-deals/inc/redux-core/templates/panel/header.tpl.php:11
- > PHP Notice
Undefined variable: mcd_settings in wp-content/plugins/my-center-deals/assets/dynamic.php on line 16
- > PHP Notice
Undefined variable: mcd_settings in wp-content/plugins/my-center-deals/assets/dynamic.php on line 24
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/my-center-deals/templates/products/single.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/my-center-deals/inc/Shortcodes.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function mcd_api_data() in wp-content/plugins/my-center-deals/templates/links/index.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/my-center-deals/templates/products/more-products.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/my-center-deals/templates/search/form.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== my-center-deals ===
) - Contributors: The plugin contributors field is not present
my-center-deals/my-center-deals.php Passed 13 tests
The primary PHP file in "My Center Portal" version 7.11.7 is used by WordPress to initiate all plugin functionality
71 characters long description:
Show Deals, Stores & Events of a Center from mycenterportal.com portal.
Code Analysis 97% from 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 plugin101,814 lines of code in 547 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 197 | 11,055 | 9,479 | 55,610 |
PHP | 196 | 6,105 | 10,227 | 26,177 |
CSS | 100 | 4,245 | 743 | 9,086 |
Sass | 36 | 986 | 13 | 5,760 |
SVG | 15 | 77 | 13 | 5,089 |
Markdown | 2 | 43 | 0 | 83 |
HTML | 1 | 2 | 0 | 9 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 118)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 34.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 5.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 118.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 131 | |
▷ Abstract classes | 4 | 3.05% |
▷ Concrete classes | 127 | 96.95% |
▷ Final classes | 0 | 0.00% |
Methods | 979 | |
▷ Static methods | 240 | 24.51% |
▷ Public methods | 733 | 74.87% |
▷ Protected methods | 141 | 14.40% |
▷ Private methods | 105 | 10.73% |
Functions | 57 | |
▷ Named functions | 49 | 85.96% |
▷ Anonymous functions | 8 | 14.04% |
Constants | 130 | |
▷ Global constants | 31 | 23.85% |
▷ Class constants | 99 | 76.15% |
▷ Public constants | 99 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
40 compressed PNG files occupy 0.66MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/menu-icon.png | 2.66KB | 1.20KB | ▼ 54.85% |
inc/redux-core/assets/img/toggle_tabs.png | 0.22KB | 0.35KB | 0.00% |
inc/redux-core/assets/img/jquery-ui-bootstrap/ui-icons_222222_256x240.png | 4.10KB | 4.11KB | 0.00% |
inc/redux-core/assets/img/jquery-ui-bootstrap/ui-bg_flat_0_aaaaaa_40x100.png | 0.08KB | 0.08KB | 0.00% |
inc/redux-core/assets/img/jquery-ui-bootstrap/ui-icons_2e83ff_256x240.png | 4.10KB | 4.11KB | 0.00% |