Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.62MB] [CPU: ▼63.82ms] Passed 4 tests
This is a short check of server-side resources used by Air Quality Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.37 ▼1.09 | 11.85 ▼32.59 |
Dashboard /wp-admin | 2.38 ▼0.92 | 13.17 ▼42.86 |
Posts /wp-admin/edit.php | 2.38 ▼0.97 | 14.34 ▼44.54 |
Add New Post /wp-admin/post-new.php | 2.38 ▼3.50 | 13.45 ▼135.28 |
Media Library /wp-admin/upload.php | 2.38 ▼0.84 | 16.34 ▼21.46 |
AQP Settings /wp-admin/options-general.php?page=air-quality/air-quality-plugin.php | 2.39 | 13.42 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
pk_aqp_options |
widget_pk_aqp_air_quality_widget |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Air Quality Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.21 ▼1.37 | 1.79 ▼0.11 | 44.11 ▼0.33 |
Dashboard /wp-admin | 2,225 ▲25 | 4.89 ▼0.96 | 109.45 ▲1.27 | 44.05 ▼1.74 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.01 | 33.96 ▼4.06 | 36.00 ▼4.14 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.13 ▼0.05 | 677.85 ▲2.53 | 50.87 ▲3.10 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.14 ▼0.08 | 108.64 ▼7.36 | 45.59 ▼2.22 |
AQP Settings /wp-admin/options-general.php?page=air-quality/air-quality-plugin.php | 888 | 2.02 | 22.98 | 28.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in pk_aqp_air_quality_widget is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_pk_aqp_air_quality_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=air-quality/air-quality-plugin.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in pk_aqp_air_quality_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=air-quality/air-quality-plugin.php
- > Notice in wp-content/plugins/air-quality/includes/options_menu.php+16
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=air-quality/air-quality-plugin.php
- > Notice in wp-content/plugins/air-quality/includes/options_menu.php+144
Undefined index: google_maps_key
- > GET request to /wp-admin/options-general.php?page=air-quality/air-quality-plugin.php
- > Notice in wp-content/plugins/air-quality/includes/options_menu.php+148
Undefined index: waqi_key
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/air-quality/air-quality-plugin.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/air-quality/includes/handle_ajax.php:13
- > 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 93% 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
Attributes that require attention:
- Donate link: Please fix this invalid URI: "paypal.me/patrol220"
air-quality/air-quality-plugin.php 92% from 13 tests
The primary PHP file in "Air Quality Plugin" version 0.40 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("air-quality.php" instead of "air-quality-plugin.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
Success! There were no dangerous files found in this plugin1,106 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 63 | 27 | 511 |
JavaScript | 2 | 49 | 4 | 336 |
CSS | 2 | 16 | 0 | 132 |
PO File | 1 | 37 | 43 | 127 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
8 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/humidity.png | 2.82KB | 3.07KB | 0.00% |
img/thermometer.png | 1.72KB | 1.88KB | 0.00% |
img/back.png | 0.75KB | 0.60KB | ▼ 19.69% |
img/compass-pointer.png | 3.18KB | 2.24KB | ▼ 29.79% |
img/barometer.png | 4.25KB | 4.02KB | ▼ 5.38% |