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
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.39ms] Passed 4 tests
An overview of server-side resources used by Add Social Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.63 ▼9.39 |
Dashboard /wp-admin | 3.40 ▲0.09 | 43.73 ▼4.14 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 46.58 ▲2.49 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 96.22 ▼0.25 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.23 ▲0.23 |
All Social Buttonss /wp-admin/edit.php?post_type=addsocialbuttons | 3.37 | 36.92 |
Add New /wp-admin/post-new.php?post_type=addsocialbuttons | 3.35 | 44.44 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Add Social Buttons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲122 | 13.57 ▼1.18 | 1.82 ▲0.05 | 40.43 ▼5.56 |
Dashboard /wp-admin | 2,230 ▲42 | 5.84 ▼0.05 | 96.32 ▼4.65 | 38.97 ▼5.43 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.02 ▲0.01 | 41.13 ▲6.46 | 38.19 ▲4.22 |
Add New Post /wp-admin/post-new.php | 1,570 ▲56 | 18.04 ▲0.42 | 595.01 ▼103.37 | 75.00 ▲17.88 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.22 ▼0.02 | 98.67 ▼6.17 | 40.96 ▼0.20 |
All Social Buttonss /wp-admin/edit.php?post_type=addsocialbuttons | 1,097 | 1.93 | 30.16 | 30.41 |
Add New /wp-admin/post-new.php?post_type=addsocialbuttons | 1,687 | 2.55 | 49.69 | 48.64 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
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 items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-social-buttons/includes/scripts.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/add-social-buttons/addsocialbuttons.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (The review edition page)
add-social-buttons/addsocialbuttons.php 85% from 13 tests
The principal PHP file in "Add Social Buttons" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-social-buttons.php" instead of "addsocialbuttons.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin411 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 100 | 60 | 389 |
CSS | 2 | 6 | 6 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/youtube.png | 2.23KB | 1.80KB | ▼ 19.20% |
assets/img/behance.png | 3.09KB | 2.13KB | ▼ 31.16% |
assets/img/facebook.png | 2.80KB | 1.49KB | ▼ 46.99% |
assets/img/yahoo.png | 3.48KB | 2.21KB | ▼ 36.61% |
assets/img/flickr.png | 2.19KB | 1.60KB | ▼ 26.90% |