Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/cbnet-social-menu/cbnet-social-menu.php+106
Methods with the same name as their class will not be constructors in a future version of PHP; cbnet_social_menu_widget has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼58.71ms] Passed 4 tests
An overview of server-side resources used by cbnet Social Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 4.58 ▼31.66 |
Dashboard /wp-admin | 2.11 ▼1.24 | 5.77 ▼55.63 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.58 ▼44.69 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.85 ▼102.87 |
Media Library /wp-admin/upload.php | 2.11 ▼1.13 | 5.54 ▼27.83 |
Server storage [IO: ▲2.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_cbnet_social_menu_widget |
Browser metrics Passed 4 tests
Checking browser requirements for cbnet Social Menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.35 ▼1.30 | 1.69 ▼0.08 | 40.18 ▼0.86 |
Dashboard /wp-admin | 2,209 ▲18 | 5.86 ▲0.97 | 106.98 ▼1.88 | 41.65 ▼4.27 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▲0.01 | 39.40 ▼2.80 | 35.07 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.27 ▼0.09 | 590.67 ▼25.74 | 58.40 ▲7.94 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.19 ▼0.07 | 93.25 ▼6.95 | 40.78 ▼0.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/cbnet-social-menu/cbnet-social-menu.php+106
Methods with the same name as their class will not be constructors in a future version of PHP; cbnet_social_menu_widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- widget_cbnet_social_menu_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cbnet-social-menu/cbnet-social-menu.php:45
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: social, social networks, menu, widget, cbnet...
cbnet-social-menu/cbnet-social-menu.php Passed 13 tests
The main PHP script in "cbnet Social Menu" version 1.0 is automatically included on every request by WordPress
83 characters long description:
Manage and display your social network profile links using a custom navigation menu
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,992 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 3 | 2,660 |
CSS | 10 | 30 | 73 | 2,189 |
PHP | 1 | 27 | 71 | 111 |
PO File | 1 | 47 | 85 | 32 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin