Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.79ms] Passed 4 tests
Server-side resources used by MORPC's Air Quality Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 42.80 ▲3.16 |
Dashboard /wp-admin | 3.39 ▲0.09 | 50.68 ▼3.43 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.49 ▲1.06 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 97.67 ▼8.25 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 41.23 ▼4.52 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for MORPC's Air Quality Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 13.66 ▼0.73 | 1.51 ▼0.47 | 40.56 ▼5.30 |
Dashboard /wp-admin | 2,242 ▲36 | 4.86 ▼0.02 | 108.58 ▲3.09 | 42.22 ▼6.49 |
Posts /wp-admin/edit.php | 2,121 ▲18 | 2.04 ▲0.05 | 36.35 ▼2.95 | 30.64 ▼8.73 |
Add New Post /wp-admin/post-new.php | 1,555 ▲10 | 23.10 ▼0.28 | 630.48 ▼53.40 | 60.44 ▼9.91 |
Media Library /wp-admin/upload.php | 1,418 ▲24 | 4.26 ▲0.09 | 119.33 ▲15.00 | 49.19 ▲0.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/morpcs-air-quality-widget/admin/partials/aqi-widget-admin-display.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: air quality, aqi, morpc, airnow
morpcs-air-quality-widget/aqi-widget.php 92% from 13 tests
Analyzing the main PHP file in "MORPC's Air Quality Widget" version 1.2.0
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("morpcs-air-quality-widget.php" instead of "aqi-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,018 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 123 | 408 | 450 |
JavaScript | 3 | 90 | 72 | 413 |
CSS | 2 | 32 | 27 | 155 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 26 | 78.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 21.21% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.29MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/aqi_compact_4.png | 1.15KB | 0.79KB | ▼ 31.47% |
public/img/aqi_compact_1.png | 1.45KB | 0.78KB | ▼ 46.60% |
public/img/aqi_page_3.png | 53.93KB | 20.41KB | ▼ 62.15% |
public/img/aqi_page_5.png | 53.00KB | 19.86KB | ▼ 62.53% |
public/img/aqi_compact_2.png | 1.16KB | 0.78KB | ▼ 33.16% |