Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/airliners-widget/airliners-widget.php+37
Methods with the same name as their class will not be constructors in a future version of PHP; airliners_widget_Widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼51.57ms] Passed 4 tests
A check of server-side resources used by Airliners Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 7.66 ▼32.88 |
Dashboard /wp-admin | 2.10 ▼1.21 | 4.73 ▼41.77 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.17 ▼36.92 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.27 ▼94.69 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.74 ▼25.83 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_airliners_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Airliners Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.26 ▼1.33 | 1.70 ▲0.01 | 36.25 ▼7.24 |
Dashboard /wp-admin | 2,208 ▲23 | 4.87 ▼1.00 | 115.26 ▲12.99 | 43.01 ▼0.04 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.02 ▼0.01 | 34.54 ▼0.22 | 33.93 ▼2.83 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.42 ▲0.25 | 645.56 ▲33.88 | 48.60 ▼0.89 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.20 ▲0.01 | 97.41 ▼10.90 | 40.47 ▼6.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/airliners-widget/airliners-widget.php+37
Methods with the same name as their class will not be constructors in a future version of PHP; airliners_widget_Widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_airliners_widget
- widget_recent-posts
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/airliners-widget/airliners-widget.php:37
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: image, aviation, picture, airliners, widget
airliners-widget/airliners-widget.php Passed 13 tests
The primary PHP file in "Airliners Widget" version 1.1.1 is used by WordPress to initiate all plugin functionality
123 characters long description:
Displays an Airliners.net picture (Random, Top Of Yesterday, or specific picture by ID) using official Airliners.net script
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected170 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 14 | 14 | 87 |
PHP | 1 | 25 | 39 | 76 |
CSS | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 5 | 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
PNG images were not found in this plugin