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.01MB] [CPU: ▼2.32ms] Passed 4 tests
Server-side resources used by Air Quality Data from Foobot
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.51 ▼5.54 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.67 ▼2.74 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.54 ▼1.04 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 97.79 ▲0.04 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.20 ▲4.64 |
Foobot API /wp-admin/options-general.php?page=aq-data-foobot | 3.18 | 37.38 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_bd_foobot_sensor_data |
wp_bd_foobot_device_data |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
bd_foobot_sensor_db_version |
widget_theysaidso_widget |
bd_foobot_device_db_version |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Air Quality Data from Foobot
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.72 ▲0.34 | 2.18 ▲0.43 | 42.48 ▼3.99 |
Dashboard /wp-admin | 2,199 ▲22 | 5.58 ▼0.14 | 90.26 ▼8.16 | 44.79 ▲2.30 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.97 ▼0.05 | 39.35 ▲4.01 | 34.48 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,548 ▲17 | 23.35 ▲0.00 | 662.05 ▼85.79 | 57.87 ▲4.73 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.20 ▼0.04 | 97.28 ▼15.06 | 45.16 ▼1.72 |
Foobot API /wp-admin/options-general.php?page=aq-data-foobot | 809 | 2.02 | 29.49 | 27.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- db_upgraded
- bd_foobot_sensor_db_version
- widget_theysaidso_widget
- theysaidso_admin_options
- bd_foobot_device_db_version
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=aq-data-foobot
- > Notice in wp-content/plugins/air-quality-data-from-foobot/admin/admin.php+81
Trying to access array offset on value of type bool
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/air-quality-data-from-foobot/aq-data-foobot.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/air-quality-data-from-foobot/admin/admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/air-quality-data-from-foobot/includes/shortcodes.php:45
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
air-quality-data-from-foobot/aq-data-foobot.php 85% from 13 tests
This is the main PHP file of "Air Quality Data from Foobot" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("air-quality-data-from-foobot.php" instead of "aq-data-foobot.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin524 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 180 | 301 | 446 |
CSS | 1 | 1 | 0 | 78 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
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 | 29 | |
▷ Named functions | 29 | 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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 50.70KB | 20.82KB | ▼ 58.93% |