Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼293.65ms] Passed 4 tests
An overview of server-side resources used by Alert Bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 51.26 ▲0.01 |
Dashboard /wp-admin | 3.44 ▲0.04 | 33.93 ▲0.39 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 38.07 ▲1.25 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 95.17 ▼1,173.43 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 24.69 ▼1.58 |
Add New /wp-admin/post-new.php?post_type=fiat_alert | 3.65 | 41.39 |
Alerts /wp-admin/edit.php?post_type=fiat_alert | 3.35 | 24.49 |
Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Alert Bar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,803 ▲81 | 16.16 ▲0.25 | 7.06 ▲1.37 | 2.38 ▼0.04 |
Dashboard /wp-admin | 2,926 ▲65 | 6.19 ▼0.01 | 116.46 ▼14.71 | 177.68 ▲15.16 |
Posts /wp-admin/edit.php | 2,722 ▲31 | 3.26 ▲0.03 | 62.60 ▲0.75 | 139.76 ▼2.61 |
Add New Post /wp-admin/post-new.php | 1,734 ▲73 | 21.07 ▲4.61 | 425.68 ▼11.56 | 181.33 ▲26.41 |
Media Library /wp-admin/upload.php | 1,731 ▲30 | 5.54 ▼0.01 | 124.02 ▼9.55 | 217.18 ▲30.70 |
Add New /wp-admin/post-new.php?post_type=fiat_alert | 2,809 | 10.09 | 189.36 | 216.55 |
Alerts /wp-admin/edit.php?post_type=fiat_alert | 1,411 | 3.16 | 59.59 | 114.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
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 | 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 trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fiat-alert-bar/fiatalert.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fiat-alert-bar/trunk/fiatalert.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (This is the alert in action on a school website.), #2 (The Alert function is added directly into the WordPress dashboard.)
fiat-alert-bar/fiatalert.php 92% from 13 tests
The principal PHP file in "Alert Bar" v. 2.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fiat-alert-bar.php" instead of "fiatalert.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected53 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 15 | 41 |
CSS | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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 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
6 PNG files occupy 1.40MB with 0.83MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fiat-alert.png | 1.76KB | 0.82KB | ▼ 53.63% |
screenshot-2.png | 57.19KB | 22.21KB | ▼ 61.16% |
trunk/fiat-alert.png | 1.76KB | 0.82KB | ▼ 53.63% |
trunk/screenshot-2.png | 57.19KB | 22.21KB | ▼ 61.16% |
screenshot-1.png | 659.79KB | 214.79KB | ▼ 67.45% |