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.12MB] [CPU: ▼2.87ms] Passed 4 tests
An overview of server-side resources used by Themes4WP Social Counter Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.72 ▼3.21 |
Dashboard /wp-admin | 3.43 ▲0.12 | 44.46 ▼8.28 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.13 ▼1.40 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 97.30 ▲7.27 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.90 ▲1.41 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_twp_social |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Themes4WP Social Counter Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲57 | 14.55 ▲0.17 | 38.36 ▲36.20 | 42.19 ▼5.52 |
Dashboard /wp-admin | 2,209 ▲21 | 4.89 ▲0.01 | 110.35 ▼6.28 | 44.64 ▼1.23 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.04 | 40.82 ▲4.25 | 35.18 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,532 ▼10 | 23.12 ▲4.73 | 581.98 ▼53.22 | 50.79 ▼21.42 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▼0.09 | 93.56 ▼8.06 | 40.69 ▼2.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- widget_twp_social
- widget_theysaidso_widget
- db_upgraded
- 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
Even though everything seems fine, this is not 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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/themes4wp-social-counter-widget/twp-social-counter-widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 31 tag instead of maximum 10
themes4wp-social-counter-widget/twp-social-counter-widget.php 85% from 13 tests
The main PHP file in "Themes4WP Social Counter Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("themes4wp-social-counter-widget.php" instead of "twp-social-counter-widget.php")
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
There were no executable files found in this plugin695 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 84 | 141 | 540 |
CSS | 1 | 4 | 4 | 155 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 5.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 13.33% |
Functions | 5 | |
▷ Named functions | 5 | 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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/post-icon.png | 0.62KB | 0.46KB | ▼ 26.26% |
images/facebook-icon.png | 1.06KB | 0.22KB | ▼ 79.04% |
images/comments-icon.png | 0.64KB | 0.46KB | ▼ 28.55% |
images/rss-icon.png | 3.67KB | 0.83KB | ▼ 77.48% |
images/google-icon.png | 0.65KB | 0.45KB | ▼ 30.18% |