Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/certishopping-social-reviews-for-woocommerce/wc_certishopping.php+146
Undefined variable: plugin
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.86ms] Passed 4 tests
This is a short check of server-side resources used by Certishopping Social Reviews for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.68 ▲0.22 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.89 ▲2.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.45 ▼7.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.37 ▼9.30 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.76 ▼2.93 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
wc_certishopping_just_installed |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Certishopping Social Reviews for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.72 ▲0.36 | 1.74 ▼0.18 | 42.92 ▲0.85 |
Dashboard /wp-admin | 2,198 ▲21 | 5.57 ▼0.05 | 84.33 ▼8.16 | 41.71 ▲2.24 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 2.01 ▼0.00 | 35.31 ▼1.97 | 42.01 ▲6.01 |
Add New Post /wp-admin/post-new.php | 1,528 ▲1 | 23.57 ▲0.57 | 662.13 ▼3.78 | 63.96 ▲2.37 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.01 | 100.17 ▼2.64 | 46.93 ▲0.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- wc_certishopping_just_installed
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/certishopping-social-reviews-for-woocommerce/wc_certishopping.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/certishopping-social-reviews-for-woocommerce/wc-certishopping-shortcodes.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in certishopping-social-reviews-for-woocommerce/assets to your readme.txt
certishopping-social-reviews-for-woocommerce/wc_certishopping.php 77% from 13 tests
The principal PHP file in "Certishopping Social Reviews for Woocommerce" v. 4.2.7 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 272 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("certishopping-social-reviews-for-woocommerce.php" instead of "wc_certishopping.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
Good job! No executable or dangerous file extensions detected2,004 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 163 | 69 | 1,491 |
CSS | 2 | 13 | 0 | 209 |
PO File | 1 | 54 | 2 | 121 |
SVG | 1 | 0 | 1 | 120 |
JavaScript | 2 | 2 | 11 | 47 |
YAML | 1 | 4 | 2 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 3 | 12.50% |
▷ Public methods | 13 | 54.17% |
▷ Protected methods | 11 | 45.83% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 45 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo.png | 21.10KB | 7.91KB | ▼ 62.49% |
assets/images/logo_small.png | 2.52KB | 1.55KB | ▼ 38.53% |
assets/images/logo.png | 2.64KB | 1.60KB | ▼ 39.16% |