Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.42ms] Passed 4 tests
Analyzing server-side resources used by Cohesionet Buddy Shopping Online
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.20 ▼2.34 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.88 ▼3.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.20 ▲2.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 92.38 ▼11.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.88 ▼0.29 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Cohesionet Buddy Shopping Online
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.34 ▼1.04 | 1.57 ▼0.17 | 39.30 ▼4.72 |
Dashboard /wp-admin | 2,197 ▲6 | 5.83 ▲0.93 | 98.57 ▼16.37 | 40.50 ▼9.05 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.02 ▼0.00 | 41.17 ▼1.36 | 35.27 ▼0.86 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.54 ▲0.61 | 615.52 ▼67.11 | 68.74 ▲7.26 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.16 ▼0.02 | 95.97 ▼8.51 | 45.75 ▲1.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/cohesionet-buddy-shopping-online/cohesionet_buddyShopping.php:62
- > PHP Fatal error
Uncaught Error: Class 'Cohesionet_BuddyShopping_Product' not found in wp-content/plugins/cohesionet-buddy-shopping-online/ui/product.php:2
- > PHP Fatal error
Uncaught Error: Class 'Cohesionet_BuddyShopping' not found in wp-content/plugins/cohesionet-buddy-shopping-online/ui/embed.php:2
- > PHP Fatal error
Uncaught Error: Class 'Cohesionet_BuddyShopping' not found in wp-content/plugins/cohesionet-buddy-shopping-online/ui/admin_ui.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
cohesionet-buddy-shopping-online/cohesionet_buddyShopping.php 85% from 13 tests
Analyzing the main PHP file in "Cohesionet Buddy Shopping Online" version 2.0.0
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("cohesionet-buddy-shopping-online.php" instead of "cohesionet_buddyShopping.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 398 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected200 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 48 | 45 | 200 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin