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.10MB] [CPU: ▼2.46ms] Passed 4 tests
Analyzing server-side resources used by Ocean Extra
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.58 ▼0.22 |
Dashboard /wp-admin | 3.41 ▲0.10 | 46.74 ▼5.20 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.11 ▼3.93 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 92.08 ▼0.50 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.65 ▲3.73 |
Server storage [IO: ▲9.74MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 681 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
ocean-extra-version |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ocean Extra
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.23 ▲0.02 | 1.50 ▼0.44 | 36.85 ▼7.17 |
Dashboard /wp-admin | 2,198 ▲18 | 5.61 ▼0.02 | 93.77 ▲0.31 | 40.56 ▼4.11 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.05 | 41.00 ▲2.76 | 36.93 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,528 ▼7 | 23.13 ▼2.19 | 626.50 ▼20.99 | 55.06 ▼18.71 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▲0.01 | 95.71 ▼1.91 | 41.99 ▲2.42 |
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: 7 options
- ocean-extra-version
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 34× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/ocean-extra/includes/metabox/controls/range/template.php
- > /wp-content/plugins/ocean-extra/includes/metabox/butterbean/tmpl/section.php
- > /wp-content/plugins/ocean-extra/includes/metabox/butterbean/tmpl/control-checkboxes.php
- > /wp-content/plugins/ocean-extra/includes/metabox/controls/editor/template.php
- > /wp-content/plugins/ocean-extra/includes/metabox/butterbean/tmpl/control-range.php
- > /wp-content/plugins/ocean-extra/includes/metabox/controls/select/template.php
- > /wp-content/plugins/ocean-extra/includes/metabox/controls/textarea/template.php
- > /wp-content/plugins/ocean-extra/includes/metabox/butterbean/tmpl/control-select.php
- > /wp-content/plugins/ocean-extra/includes/metabox/butterbean/tmpl/control-editor.php
- > /wp-content/plugins/ocean-extra/includes/metabox/butterbean/tmpl/control-parent.php
- 59× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Setting' not found in wp-content/plugins/ocean-extra/includes/metabox/butterbean/inc/settings/class-setting-array.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_filter() in wp-content/plugins/ocean-extra/includes/themepanel/views/panes/extra-settings-widgets.php:3
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/ocean-extra/includes/metabox/butterbean/inc/controls/class-control-textarea.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ocean-extra/includes/themepanel/views/panes/quick-settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'OE_Icon_Picker_Type_Font' not found in wp-content/plugins/ocean-extra/includes/menu-icons/includes/library/icon-selector/includes/types/genericon.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ocean-extra/includes/metabox/controls/typography/template.php:39
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/ocean-extra/includes/metabox/butterbean/inc/controls/class-control-checkboxes.php:20
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/ocean-extra/includes/metabox/controls/range/class-control-range.php:17
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/ocean-extra/includes/metabox/butterbean/inc/controls/class-control-datetime.php:24
- > PHP Fatal error
Uncaught Error: Class 'ButterBean_Control' not found in wp-content/plugins/ocean-extra/includes/metabox/butterbean/inc/controls/class-control-radio.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: metabox, metaboxes, meta box, oceanwp, widgets
ocean-extra/ocean-extra.php 92% from 13 tests
The primary PHP file in "Ocean Extra" version 2.2.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin116,546 lines of code in 553 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 320 | 14,161 | 27,083 | 68,212 |
JavaScript | 76 | 5,644 | 3,214 | 21,782 |
CSS | 122 | 1,767 | 947 | 16,419 |
PO File | 2 | 3,205 | 5,053 | 5,560 |
Sass | 16 | 357 | 20 | 1,902 |
SVG | 5 | 3 | 6 | 1,816 |
Markdown | 6 | 237 | 0 | 664 |
JSON | 4 | 0 | 0 | 106 |
XML | 2 | 8 | 10 | 85 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 39.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 190 | |
▷ Abstract classes | 7 | 3.68% |
▷ Concrete classes | 183 | 96.32% |
▷ Final classes | 14 | 7.65% |
Methods | 2,234 | |
▷ Static methods | 370 | 16.56% |
▷ Public methods | 1,698 | 76.01% |
▷ Protected methods | 117 | 5.24% |
▷ Private methods | 419 | 18.76% |
Functions | 215 | |
▷ Named functions | 210 | 97.67% |
▷ Anonymous functions | 5 | 2.33% |
Constants | 178 | |
▷ Global constants | 117 | 65.73% |
▷ Class constants | 61 | 34.27% |
▷ Public constants | 61 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
63 compressed PNG files occupy 0.36MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/panel/assets/img/demos-import-image.png | 5.65KB | 5.62KB | 0.48% |
includes/freemius/assets/img/ocean-hooks.png | 9.93KB | 3.39KB | ▼ 65.90% |
includes/panel/assets/img/modal-window-image.png | 4.60KB | 4.58KB | 0.32% |
includes/panel/assets/img/plugins/instagram.png | 2.38KB | 2.53KB | 0.00% |
includes/panel/assets/img/rec-plugins/visual-composer-icon.png | 2.13KB | 2.14KB | 0.00% |