Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.07ms] Passed 4 tests
This is a short check of server-side resources used by Top 25 Social Icons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 47.06 ▲5.35 |
Dashboard /wp-admin | 3.44 ▲0.10 | 46.83 ▼16.63 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 43.73 ▲2.71 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 81.94 ▼15.22 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 32.22 ▲0.88 |
Top25 Social Icons /wp-admin/options-general.php?page=top25-social-icons | 3.43 | 34.00 |
Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 288 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_top25-social-icons |
Browser metrics Passed 4 tests
Checking browser requirements for Top 25 Social Icons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.39 ▲0.14 | 1.84 ▲0.14 | 26.84 ▼20.47 |
Dashboard /wp-admin | 2,210 ▲30 | 5.56 ▲0.02 | 81.19 ▼17.76 | 42.80 ▼1.23 |
Posts /wp-admin/edit.php | 2,115 ▲18 | 2.14 ▲0.13 | 34.14 ▼1.56 | 38.35 ▲4.79 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 22.94 ▼0.23 | 642.49 ▼14.60 | 54.93 ▼1.93 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.22 ▲0.04 | 96.84 ▼2.20 | 43.81 ▼2.31 |
Top25 Social Icons /wp-admin/options-general.php?page=top25-social-icons | 1,033 | 2.00 | 23.93 | 33.39 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_top25-social-icons
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× 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/top-25-social-icons/lite.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/top-25-social-icons/admin/widget.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/top-25-social-icons/admin/options.php:3
- > 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 errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== top-25-social-icons ===
) - Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
top-25-social-icons/lite.php 85% from 13 tests
The primary PHP file in "Top 25 Social Icons" version 3.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("top-25-social-icons.php" instead of "lite.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 475 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,665 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 26 | 4 | 55 | 1,074 |
PHP | 3 | 135 | 31 | 584 |
JavaScript | 1 | 3 | 4 | 7 |
PHP code Passed 2 tests
An overview 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.14 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 8.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
235 PNG files occupy 0.80MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/circle/Forrst.png | 2.51KB | 1.68KB | ▼ 32.80% |
images/square/twitter.png | 1.32KB | 1.30KB | ▼ 1.77% |
images/circle/deviantart.png | 3.67KB | 0.81KB | ▼ 77.94% |
images/circle48/forrst.png | 5.14KB | 1.89KB | ▼ 63.28% |
images/kite/tumblr.png | 4.39KB | 1.43KB | ▼ 67.49% |