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.25MB] [CPU: ▼7.55ms] Passed 4 tests
Analyzing server-side resources used by WP30 Sky Bar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 44.43 ▲1.14 |
Dashboard /wp-admin | 3.56 ▲0.21 | 51.28 ▼13.88 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 55.44 ▲0.67 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 89.48 ▼17.67 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 41.03 ▲0.69 |
All Sky Bars /wp-admin/edit.php?post_type=wp30_sky_bar | 3.52 | 39.00 |
Add New /wp-admin/post-new.php?post_type=wp30_sky_bar | 3.52 | 45.12 |
Server storage [IO: ▲2.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP30 Sky Bar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 14.28 ▲0.00 | 1.67 ▲0.10 | 44.23 ▼1.12 |
Dashboard /wp-admin | 2,226 ▲52 | 5.61 ▼0.05 | 96.48 ▲8.31 | 42.59 ▲3.55 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.00 ▲0.05 | 41.09 ▲0.36 | 36.85 ▼0.01 |
Add New Post /wp-admin/post-new.php | 6,308 ▲4,783 | 26.14 ▲3.22 | 962.15 ▲311.64 | 43.32 ▼12.18 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.22 ▲0.00 | 103.98 ▲1.10 | 44.97 ▼0.09 |
All Sky Bars /wp-admin/edit.php?post_type=wp30_sky_bar | 1,092 | 1.95 | 33.87 | 31.73 |
Add New /wp-admin/post-new.php?post_type=wp30_sky_bar | 2,351 | 3.02 | 88.68 | 43.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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
Everything seems fine, however this is by no means 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 fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp30-sky-bar/public/partials/wp30-sky-bar-public-display.php
- > /wp-content/plugins/wp30-sky-bar/admin/partials/wp30-sky-bar-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Website with top "Sky Bar" bar), #2 (Side menu with "Sky Bar" > All Sky Bars"), #3 (General Settings at Sky Bar), #4 (Content options at Sky Bar), #5 (Design options at Sky Bar), #6 (Rules options at Sky Bar)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp30-sky-bar ===
)
wp30-sky-bar/wp30-sky-bar.php Passed 13 tests
The main PHP script in "WP30 Sky Bar" version 1.0.0 is automatically included on every request by WordPress
34 characters long description:
A top bar for your message channel
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
Success! There were no dangerous files found in this plugin1,520 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 350 | 770 | 1,164 |
CSS | 4 | 1 | 32 | 198 |
JavaScript | 3 | 47 | 25 | 158 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 28.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 146.00 |
Average method complexity | 5.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 89.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 2 | 3.92% |
▷ Public methods | 44 | 86.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 13.73% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
20 PNG files occupy 1.88MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/social/dribbble.png | 0.59KB | 0.92KB | 0.00% |
public/images/social/behance.png | 0.78KB | 0.99KB | 0.00% |
public/images/social/linkedin.png | 0.43KB | 0.60KB | 0.00% |
screenshot-2.png | 56.96KB | 18.48KB | ▼ 67.55% |
screenshot-1.png | 1,527.86KB | 636.25KB | ▼ 58.36% |