Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.74MB] [CPU: ▼37.66ms] Passed 4 tests
An overview of server-side resources used by WG Compareo
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 43.13 ▲2.57 |
Dashboard /wp-admin | 3.21 ▼0.10 | 24.01 ▼27.08 |
Posts /wp-admin/edit.php | 3.21 ▼0.15 | 23.74 ▼26.30 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.68 | 20.68 ▼77.43 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 18.30 ▼19.84 |
Add New Image Compare /wp-admin/post-new.php?post_type=compare | 3.21 | 22.29 |
All Image Compare /wp-admin/edit.php?post_type=compare | 3.21 | 19.99 |
Server storage [IO: ▲2.68MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 341 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
recovery_mode_email_last_sent |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WG Compareo
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲202 | 13.43 ▼0.94 | 8.47 ▲6.64 | 37.12 ▼5.22 |
Dashboard /wp-admin | 2,236 ▲59 | 5.68 ▲0.10 | 86.22 ▼3.98 | 39.30 ▼3.21 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 2.03 ▲0.02 | 37.65 ▼4.74 | 33.22 ▼8.86 |
Add New Post /wp-admin/post-new.php | 1,556 ▲18 | 23.68 ▲5.41 | 692.70 ▲67.00 | 71.04 ▲7.12 |
Media Library /wp-admin/upload.php | 1,438 ▲35 | 4.30 ▲0.11 | 103.04 ▼2.98 | 43.87 ▼4.61 |
Add New Image Compare /wp-admin/post-new.php?post_type=compare | 1,293 | 1.51 | 6.74 | 33.70 |
All Image Compare /wp-admin/edit.php?post_type=compare | 1,102 | 1.97 | 35.01 | 31.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/wg-compareo/wg-compareo.php+165
Use of undefined constant WG_IGHE_POST_TYPE - assumed 'WG_IGHE_POST_TYPE' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 7 options in the database
- recovery_mode_email_last_sent
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 9 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=compare
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/wg-compareo/wg-compareo.php+186
Use of undefined constant WG_IGHE_POST_TYPE - assumed 'WG_IGHE_POST_TYPE' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/post-new.php?post_type=compare
- > Compile error in wp-content/plugins/wg-compareo/inc/cmb2/includes/types/CMB2_Type_File.php+15
Declaration of CMB2_Type_File::render() must be compatible with CMB2_Type_Text::render($args = Array)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wg-compareo/inc/index.php
- > /wp-content/plugins/wg-compareo/images/index.php
- > /wp-content/plugins/wg-compareo/index.php
- 35× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wg-compareo/inc/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/wg-compareo/inc/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wg-compareo/inc/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/wg-compareo/inc/cmb2/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/wg-compareo/inc/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wg-compareo/inc/cmb2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/wg-compareo/inc/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/wg-compareo/inc/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/wg-compareo/inc/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/wg-compareo/inc/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Donate link: Invalid url: "www.webgensis.com"
wg-compareo/wg-compareo.php Passed 13 tests
The primary PHP file in "WG Compareo" version 1.0 is used by WordPress to initiate all plugin functionality
86 characters long description:
Create attractive image compare boxes. Place them anywhere with easy to use shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected43,547 lines of code in 195 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 13,782 | 17,882 | 31,544 |
PHP | 52 | 1,728 | 4,674 | 5,967 |
CSS | 13 | 1,002 | 1,034 | 4,469 |
JavaScript | 5 | 284 | 307 | 1,058 |
Markdown | 2 | 144 | 0 | 428 |
SVG | 3 | 0 | 3 | 81 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 16.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 8 | 12.70% |
▷ Concrete classes | 55 | 87.30% |
▷ Final classes | 0 | 0.00% |
Methods | 430 | |
▷ Static methods | 67 | 15.58% |
▷ Public methods | 359 | 83.49% |
▷ Protected methods | 68 | 15.81% |
▷ Private methods | 3 | 0.70% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 9 | 60.00% |
▷ Class constants | 6 | 40.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
inc/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
inc/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |