Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/yasip/plugin.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; yasip_Widget has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼51.48ms] Passed 4 tests
An overview of server-side resources used by Yet Another Social Media Icon Plugin (YASIP)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 4.93 ▼36.26 |
Dashboard /wp-admin | 2.17 ▼1.13 | 5.50 ▼45.81 |
Posts /wp-admin/edit.php | 2.17 ▼1.18 | 5.75 ▼41.83 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.71 | 6.05 ▼82.00 |
Media Library /wp-admin/upload.php | 2.17 ▼1.05 | 4.83 ▼30.40 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 158 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_yasip |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Yet Another Social Media Icon Plugin (YASIP)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.25 ▼1.14 | 1.78 ▼0.17 | 45.39 ▼0.05 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.04 | 110.86 ▼4.71 | 38.42 ▼3.77 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.08 | 39.37 ▲1.96 | 34.16 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.08 ▲0.56 | 604.41 ▼96.41 | 60.40 ▲4.16 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▼0.06 | 96.33 ▼4.30 | 40.78 ▼4.67 |
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
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/yasip/plugin.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; yasip_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_yasip
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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)
Good news, no errors were detected
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 add_action() in wp-content/plugins/yasip/plugin.php:21
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== yasip ===
)
yasip/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Yet Another Social Media Icon Plugin (YASIP)" version 1.2
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("yasip.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin158 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 18 | 158 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
156 PNG files occupy 0.35MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/orbs/tumblr_48x48.png | 4.84KB | 2.75KB | ▼ 43.21% |
images/orbs/vine_24x24.png | 1.73KB | 1.57KB | ▼ 9.59% |
images/flat/rss_48x48.png | 4.16KB | 2.68KB | ▼ 35.59% |
images/flat/flickr_48x48.png | 3.43KB | 2.46KB | ▼ 28.34% |
images/silver/tumblr_24x24.png | 1.23KB | 1.38KB | 0.00% |