Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/follow-us-on-widget/follow-us.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; FollowusonWidget has a deprecated constructor
Server metrics [RAM: ▼1.86MB] [CPU: ▼52.37ms] Passed 4 tests
Analyzing server-side resources used by Follow us on widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 4.03 ▼38.91 |
Dashboard /wp-admin | 2.15 ▼1.15 | 5.52 ▼45.53 |
Posts /wp-admin/edit.php | 2.15 ▼1.21 | 8.25 ▼39.46 |
Add New Post /wp-admin/post-new.php | 2.15 ▼3.74 | 5.87 ▼85.57 |
Media Library /wp-admin/upload.php | 2.15 ▼1.08 | 6.60 ▼28.24 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_followusonwidget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Follow us on widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.74 ▼0.61 | 1.70 ▼0.28 | 38.95 ▼5.20 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▲0.81 | 112.69 ▼5.07 | 38.56 ▼5.78 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.03 | 40.34 ▲1.84 | 34.57 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 23.71 ▲0.46 | 590.88 ▼156.02 | 52.23 ▼2.34 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.24 ▲0.00 | 101.05 ▼10.40 | 44.29 ▲0.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/follow-us-on-widget/follow-us.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; FollowusonWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_followusonwidget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 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/follow-us-on-widget/follow-us.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: follow us, social widget, follow us widget, follow me
follow-us-on-widget/follow-us.php 92% from 13 tests
The main file in "Follow us on widget" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("follow-us-on-widget.php" instead of "follow-us.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin127 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 8 | 124 |
CSS | 1 | 0 | 1 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 1 | |
▷ Named functions | 1 | 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
10 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/twitter.png | 2.23KB | 1.53KB | ▼ 31.58% |
images/linkedin.png | 2.67KB | 1.75KB | ▼ 34.47% |
images/xing.png | 4.01KB | 1.35KB | ▼ 66.20% |
images/pinterest.png | 2.44KB | 1.47KB | ▼ 39.52% |
images/google_plus.png | 2.73KB | 1.53KB | ▼ 44.10% |