Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.25ms] Passed 4 tests
Server-side resources used by WP30 By Who
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.14 ▼4.24 |
Dashboard /wp-admin | 3.46 ▲0.11 | 46.40 ▼12.89 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 43.16 ▼5.61 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 97.59 ▲1.74 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.29 ▲5.41 |
WP30 /wp-admin/admin.php?page=wp30 | 3.35 | 29.47 |
By Who /wp-admin/admin.php?page=wp30-by-who/admin/class-wp30-by-who-settings.php/by-who | 3.35 | 31.20 |
Server storage [IO: ▲1.30MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wp30_by_who_input_settings |
wp30_by_who_display_options |
widget_recent-comments |
db_upgraded |
wp30_by_who_social_options |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP30 By Who
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲185 | 13.55 ▼0.83 | 6.10 ▲4.35 | 47.55 ▲3.49 |
Dashboard /wp-admin | 2,237 ▲52 | 4.86 ▼1.01 | 106.24 ▲1.44 | 41.91 ▲2.17 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.01 ▲0.01 | 33.43 ▼6.33 | 33.04 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 23.25 ▼0.29 | 657.21 ▼15.42 | 59.38 ▲1.54 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.23 ▲0.02 | 96.88 ▼7.51 | 43.11 ▼5.70 |
WP30 /wp-admin/admin.php?page=wp30 | 793 | 2.17 | 23.53 | 25.31 |
By Who /wp-admin/admin.php?page=wp30-by-who/admin/class-wp30-by-who-settings.php/by-who | 849 | 2.07 | 25.06 | 28.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- widget_theysaidso_widget
- wp30_by_who_input_settings
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- wp30_by_who_social_options
- widget_recent-comments
- wp30_by_who_display_options
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp30-by-who/admin/partials/wp30-by-who-admin-display.php
- > /wp-content/plugins/wp30-by-who/public/partials/wp30-by-who-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp30-by-who ===
) - Screenshots: Please add images for these screenshots: #1 (Website with bottom "By Who" bar), #2 (Settings page at WP30 > By Who), #3 (Add all your social media URL)
wp30-by-who/wp30-by-who.php Passed 13 tests
The principal PHP file in "WP30 By Who" v. 1.0.0 is loaded by WordPress automatically on each request
54 characters long description:
A footer option for text label with social media links
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 detected640 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 305 | 687 | 609 |
CSS | 3 | 2 | 11 | 25 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 5.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 2 | 3.70% |
▷ Public methods | 48 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 11.11% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
17 PNG files occupy 1.20MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 1,024.64KB | 332.93KB | ▼ 67.51% |
public/images/social/googleplus.png | 0.64KB | 0.88KB | 0.00% |
screenshot-3.png | 112.96KB | 31.79KB | ▼ 71.85% |
public/images/social/grey/instagram.png | 1.23KB | 0.96KB | ▼ 22.20% |
public/images/social/grey/twitter.png | 1.24KB | 0.96KB | ▼ 23.02% |