Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.82ms] Passed 4 tests
A check of server-side resources used by OliveWP Companion
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.64 ▲2.07 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.40 ▼4.19 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 47.46 ▼2.40 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.21 ▼14.83 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.23 ▼1.86 |
Server storage [IO: ▲3.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 211 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for OliveWP Companion
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.25 ▼1.12 | 1.58 ▼0.23 | 42.24 ▲2.10 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲0.91 | 105.48 ▼6.67 | 42.03 ▼0.01 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▲0.01 | 41.89 ▲1.02 | 34.58 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,533 ▲4 | 23.04 ▲4.62 | 654.25 ▲13.08 | 60.90 ▲0.87 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.06 | 97.14 ▲0.57 | 41.70 ▼2.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olivewp-companion/admin/owc-script.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/olivewp-companion/inc/control/customizer-taxonomy-dropdown-custom-control.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olivewp-companion/admin/tab/addons.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olivewp-companion/admin/tab/home-page.php:183
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olivewp-companion/admin/tab/extensions.php:60
- > PHP Warning
Use of undefined constant OWC_PLUGIN_DIR - assumed 'OWC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/olivewp-companion/admin/view.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/olivewp-companion/inc/control/customizer-image-checkbox-custom-control.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olivewp-companion/admin/tab/changelog.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/olivewp-companion/inc/control/customizer-slider/customizer-slider.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/olivewp-companion/inc/spice-starter-sites/demo-content/setup.php:275
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
olivewp-companion/olivewp-companion.php Passed 13 tests
The entry point to "OliveWP Companion" version 1.1.2 is a PHP file that has certain tags in its header comment area
121 characters long description:
OliveWP Companion plugin enhances the functionality of OliveWP theme. This plugin requires OliveWP theme to be installed.
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 plugin41,702 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 7,485 | 16,265 | 32,417 |
JavaScript | 13 | 1,406 | 480 | 6,497 |
CSS | 19 | 330 | 149 | 2,547 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 76.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,153 | |
▷ Static methods | 175 | 15.18% |
▷ Public methods | 811 | 70.34% |
▷ Protected methods | 17 | 1.47% |
▷ Private methods | 325 | 28.19% |
Functions | 130 | |
▷ Named functions | 128 | 98.46% |
▷ Anonymous functions | 2 | 1.54% |
Constants | 125 | |
▷ Global constants | 100 | 80.00% |
▷ Class constants | 25 | 20.00% |
▷ Public constants | 25 | 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
10 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/freemius/assets/img/olivewp-companion.png | 3.25KB | 2.93KB | ▼ 9.85% |
inc/control/assets/img/ipad.png | 0.33KB | 0.33KB | 0.00% |
inc/freemius/assets/img/spice-starter-sites-plus.png | 3.15KB | 2.85KB | ▼ 9.48% |
inc/freemius/assets/img/olivewp-plus.png | 3.15KB | 2.85KB | ▼ 9.48% |
inc/control/assets/img/mobile.png | 0.38KB | 0.39KB | 0.00% |