Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.07ms] Passed 4 tests
An overview of server-side resources used by Traffic Lights
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.54 ▼4.73 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.16 ▼4.02 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.73 ▼5.16 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 86.77 ▼10.35 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.27 ▲3.40 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_traffic_light_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Traffic Lights: 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,832 ▲71 | 14.69 ▼0.03 | 1.90 ▲0.25 | 43.80 ▲1.09 |
Dashboard /wp-admin | 2,238 ▲64 | 5.58 ▲0.02 | 84.04 ▼45.74 | 84.35 ▲30.01 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.06 | 36.20 ▼7.64 | 32.94 ▼5.05 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.26 ▼4.76 | 621.50 ▲9.36 | 69.44 ▲12.66 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.25 ▼0.09 | 97.95 ▼0.60 | 43.83 ▲1.24 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_traffic_light_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/traffic-lights/traffic-lights-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/traffic-lights/traffic-lights-widget.php:2
- > 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)
No browser issues were found
Optimizations
Plugin configuration Passed 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
3 plugin tags: status, traffic, lights
traffic-lights/traffic-lights.php Passed 13 tests
The main PHP file in "Traffic Lights" ver. 1.02 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
A simple Traffic Light to show some state for visitor
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin195 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 37 | 48 | 195 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 6 | |
▷ Named functions | 6 | 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
6 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 |
bilder/green-off.png | 4.54KB | 2.80KB | ▼ 38.26% |
bilder/red-off.png | 5.35KB | 3.00KB | ▼ 43.83% |
bilder/red.png | 5.54KB | 2.98KB | ▼ 46.29% |
bilder/yellow-off.png | 4.45KB | 2.62KB | ▼ 41.10% |
bilder/green.png | 4.79KB | 2.65KB | ▼ 44.55% |