Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.75MB] [CPU: ▲5.81ms] Passed 4 tests
Analyzing server-side resources used by AirQuality CHMU
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 55.23 ▲5.87 |
Dashboard /wp-admin | 4.58 ▲1.27 | 65.45 ▲8.30 |
Posts /wp-admin/edit.php | 4.58 ▲1.22 | 67.93 ▲7.81 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 110.88 ▲7.23 |
Media Library /wp-admin/upload.php | 4.58 ▲1.35 | 46.68 ▲2.34 |
Server storage [IO: ▲0.09MB] [DB: ▲0.23MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options |
---|
chmu_data |
widget_theysaidso_widget |
can_compress_scripts |
chmu_last_update |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AirQuality CHMU
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▼0 | 13.32 ▲0.15 | 1.97 ▼0.18 | 50.29 ▲9.27 |
Dashboard /wp-admin | 2,234 ▲28 | 5.16 ▼0.68 | 110.13 ▼2.01 | 82.81 ▲39.64 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.47 ▲0.43 | 40.66 ▼2.48 | 41.93 ▲2.11 |
Add New Post /wp-admin/post-new.php | 1,541 ▲7 | 23.13 ▼0.06 | 824.98 ▲133.56 | 67.61 ▲13.46 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.44 ▲0.30 | 106.28 ▼11.09 | 89.48 ▲40.01 |
Uninstaller [IO: ✅] [DB: ▲0.23MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- chmu_last_update
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- chmu_data
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/airquality-chmu/aq-chmu.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Contributors: The plugin contributors field is not present
airquality-chmu/aq-chmu.php 92% from 13 tests
"AirQuality CHMU" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("airquality-chmu.php" instead of "aq-chmu.php")
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 detected191 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 67 | 189 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 15 | |
▷ Named functions | 15 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin