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.99MB] [CPU: ▲0.74ms] Passed 4 tests
Analyzing server-side resources used by Affiliate Reviews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.18 ▲0.72 | 44.43 ▲4.14 |
Dashboard /wp-admin | 4.42 ▲1.12 | 50.24 ▲1.07 |
Posts /wp-admin/edit.php | 4.43 ▲1.07 | 51.64 ▲6.41 |
Add New Post /wp-admin/post-new.php | 7.30 ▲1.41 | 105.37 ▼8.66 |
Media Library /wp-admin/upload.php | 4.28 ▲1.05 | 53.45 ▲20.44 |
Reviews /wp-admin/edit.php?post_type=affreviews_reviews | 4.37 | 46.23 |
Add New Review /wp-admin/post-new.php?post_type=affreviews_reviews | 4.73 | 63.62 |
Categories /wp-admin/edit-tags.php?taxonomy=affreviews_tax&post_type=affreviews_reviews | 4.26 | 43.52 |
Server storage [IO: ▲3.83MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 490 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Affiliate Reviews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲223 | 20.61 ▲6.30 | 1.81 ▼0.12 | 36.68 ▼14.06 |
Dashboard /wp-admin | 2,348 ▲160 | 11.62 ▲6.72 | 270.59 ▲150.79 | 41.15 ▼3.35 |
Posts /wp-admin/edit.php | 2,254 ▲165 | 10.23 ▲8.17 | 80.72 ▲43.58 | 32.58 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,585 ▲57 | 18.90 ▲0.76 | 569.25 ▼59.83 | 35.64 ▼27.43 |
Media Library /wp-admin/upload.php | 1,550 ▲162 | 10.79 ▲6.54 | 144.48 ▲46.52 | 58.53 ▲15.36 |
Reviews /wp-admin/edit.php?post_type=affreviews_reviews | 1,223 | 10.23 | 84.10 | 27.91 |
Add New Review /wp-admin/post-new.php?post_type=affreviews_reviews | 2,492 | 12.46 | 154.59 | 33.48 |
Categories /wp-admin/edit-tags.php?taxonomy=affreviews_tax&post_type=affreviews_reviews | 1,429 | 8.96 | 75.24 | 26.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 69× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/affiliate-reviews/vendor/cmb2/cmb2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/affiliate-reviews/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/affiliate-reviews/vendor/cmb2/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/affiliate-reviews/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/affiliate-reviews/vendor/cmb2/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/affiliate-reviews/vendor/cmb2/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/affiliate-reviews/templates/blocks/block-reviews-table-style.php on line 9
- > PHP Notice
Undefined variable: params in wp-content/plugins/affiliate-reviews/templates/blocks/block-reviews-table-style.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/affiliate-reviews/vendor/cmb2/cmb2/includes/types/CMB2_Type_Counter_Base.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/affiliate-reviews/templates/blocks/block-reviews-table-style-large.php:11
- > 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 93% from 29 tests
readme.txt Passed 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
6 plugin tags: affiliate, blocks, table, reviews, fse...
affiliate-reviews/affreviews.php 85% from 13 tests
The main PHP file in "Affiliate Reviews" ver. 1.0.6 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("affiliate-reviews.php" instead of "affreviews.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin52,748 lines of code in 316 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 121 | 14,370 | 18,565 | 32,467 |
PHP | 96 | 2,703 | 7,555 | 9,400 |
CSS | 21 | 253 | 1,190 | 4,568 |
JavaScript | 30 | 486 | 848 | 2,756 |
Sass | 30 | 429 | 38 | 2,107 |
Markdown | 3 | 249 | 0 | 768 |
JSON | 15 | 0 | 0 | 682 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 18.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 78 | |
▷ Abstract classes | 9 | 11.54% |
▷ Concrete classes | 69 | 88.46% |
▷ Final classes | 0 | 0.00% |
Methods | 625 | |
▷ Static methods | 109 | 17.44% |
▷ Public methods | 526 | 84.16% |
▷ Protected methods | 89 | 14.24% |
▷ Private methods | 10 | 1.60% |
Functions | 59 | |
▷ Named functions | 58 | 98.31% |
▷ Anonymous functions | 1 | 1.69% |
Constants | 14 | |
▷ Global constants | 8 | 57.14% |
▷ Class constants | 6 | 42.86% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and 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 |
vendor/cmb2/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/cmb2/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |