Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.86ms] Passed 4 tests
A check of server-side resources used by Night Traffic Light
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 5.10 ▼40.39 |
Dashboard /wp-admin | 2.10 ▼1.21 | 5.23 ▼43.92 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.70 ▼42.01 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.86 ▼85.13 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 4.83 ▼26.59 |
Night Traffic Light /wp-admin/options-general.php?page=NightTrafficLightAdminPage | 2.10 | 5.53 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_nighttrafficlightwidgetmanuell |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Night Traffic Light
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.26 ▼1.14 | 1.83 ▼0.11 | 43.94 ▼3.58 |
Dashboard /wp-admin | 2,210 ▲22 | 5.79 ▲0.94 | 103.91 ▼4.53 | 37.49 ▼10.89 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.00 | 39.46 ▲4.71 | 37.06 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.47 ▲5.82 | 666.88 ▼28.18 | 64.38 ▲9.51 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▲0.02 | 98.26 ▼2.01 | 42.00 ▼0.21 |
Night Traffic Light /wp-admin/options-general.php?page=NightTrafficLightAdminPage | 864 | 2.01 | 22.69 | 32.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method NightTrafficLightLoader::Translate() should not be called statically
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_nighttrafficlightwidgetmanuell
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=NightTrafficLightAdminPage
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method NightTrafficLightLoader::Translate() should not be called statically
- > GET request to /wp-admin/options-general.php?page=NightTrafficLightAdminPage
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method NightTrafficLightLoader::WidgetManuell() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=NightTrafficLightAdminPage
- > Deprecated in wp-content/plugins/night-traffic-light/night-traffic-light.php+42
Non-static method NightTrafficLightLoader::GetBaseFILE() should not be called statically
- > GET request to /wp-admin/options-general.php?page=NightTrafficLightAdminPage
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method NightTrafficLightLoader::RegisterAdminPage() should not be called statically
- > GET request to /wp-admin/options-general.php?page=NightTrafficLightAdminPage
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method NightTrafficLightLoader::AdminPage() should not be called statically
- > GET request to /wp-admin/options-general.php?page=NightTrafficLightAdminPage
- > Notice in wp-content/plugins/night-traffic-light/site/admin_page.php+7
Undefined index: tab
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/night-traffic-light/night-traffic-light.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/night-traffic-light/inc/widget_manuell.php:3
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== night-traffic-light ===
)
night-traffic-light/night-traffic-light.php Passed 13 tests
The main file in "Night Traffic Light" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
Einfaches Ampelsystem für WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin395 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 45 | 45 | 277 |
PO File | 2 | 31 | 33 | 118 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/support-center.png | 18.20KB | 8.07KB | ▼ 55.63% |
img/tb-webtec-logo.png | 0.76KB | 1.05KB | 0.00% |
img/red.png | 19.71KB | 9.11KB | ▼ 53.80% |
img/yellow.png | 20.42KB | 9.25KB | ▼ 54.69% |
img/green.png | 21.12KB | 9.22KB | ▼ 56.32% |