Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/dc-simple-share-buttons/doncaprio-social-plugin.php+25
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.45ms] Passed 4 tests
Analyzing server-side resources used by DC Simple Share Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.45 ▼5.12 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.50 ▼2.03 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.97 ▼0.56 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.33 ▼14.08 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.05 ▲7.45 |
Don Caprio's Social Share /wp-admin/options-general.php?page=doncaprio-social-plugin-dc | 3.18 | 29.94 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
doncaprio_social_plugin |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
DC Simple Share Buttons: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲78 | 13.14 ▼1.16 | 2.03 ▼0.02 | 42.76 ▼3.10 |
Dashboard /wp-admin | 2,210 ▲22 | 5.81 ▲0.92 | 100.02 ▼16.98 | 38.48 ▼9.63 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▲0.01 | 34.54 ▼5.54 | 28.93 ▼6.84 |
Add New Post /wp-admin/post-new.php | 1,541 ▲21 | 23.24 ▲0.08 | 669.13 ▼24.57 | 55.13 ▲3.79 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.17 ▼0.04 | 106.39 ▲3.31 | 45.46 ▼1.74 |
Don Caprio's Social Share /wp-admin/options-general.php?page=doncaprio-social-plugin-dc | 933 | 2.03 | 22.89 | 26.36 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=doncaprio-social-plugin-dc
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=doncaprio-social-plugin-dc
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/dc-simple-share-buttons/doncaprio-social-plugin.php:12
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: share, social, google, facebook, twitter
dc-simple-share-buttons/doncaprio-social-plugin.php 92% from 13 tests
The main PHP file in "DC Simple Share Buttons" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("dc-simple-share-buttons.php" instead of "doncaprio-social-plugin.php")
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
Good job! No executable or dangerous file extensions detected222 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 51 | 33 | 207 |
CSS | 1 | 10 | 1 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 9 | |
▷ Named functions | 9 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected