Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.76ms] Passed 4 tests
A check of server-side resources used by CodeManas Social Share
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.38 ▲0.17 |
Dashboard /wp-admin | 3.32 ▼0.03 | 49.90 ▼10.92 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.83 ▼1.33 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.01 ▼18.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.69 ▲4.39 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
codemanas_social_sharing_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for CodeManas Social Share
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲59 | 14.23 ▼0.32 | 2.10 ▲0.13 | 44.51 ▲3.34 |
Dashboard /wp-admin | 2,214 ▲34 | 5.64 ▲0.05 | 81.61 ▼7.62 | 40.55 ▼4.17 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 1.99 ▼0.04 | 38.10 ▲2.77 | 34.58 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 22.86 ▼0.46 | 633.16 ▼12.21 | 58.26 ▼1.19 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.19 ▲0.03 | 94.36 ▼8.11 | 42.34 ▲1.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/codemanas-social-share/codemanas-social-share.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codemanas-social-share/inc/class/class-codemanas-social-share-shortcode.php:133
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codemanas-social-share/inc/class/class-codemanas-social-share-admin.php:185
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/codemanas-social-share/inc/views/settings.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/codemanas-social-share/inc/views/admin.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2 in codemanas-social-share/assets to your readme.txt
codemanas-social-share/codemanas-social-share.php 92% from 13 tests
This is the main PHP file of "CodeManas Social Share" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
There were no executable files found in this plugin760 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 70 | 31 | 557 |
CSS | 1 | 22 | 20 | 93 |
JavaScript | 2 | 20 | 9 | 92 |
SVG | 1 | 6 | 0 | 18 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 2 | 15.38% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin