Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.12ms] Passed 4 tests
Server-side resources used by AIRFIELDHUB PLUGIN
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.94 ▼2.48 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.61 ▼10.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.52 ▼5.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.76 ▼10.85 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.82 ▲2.34 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
AIRFIELDHUB PLUGIN: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.59 ▲0.24 | 1.71 ▼0.16 | 42.28 ▲1.69 |
Dashboard /wp-admin | 2,198 ▲18 | 5.58 ▼0.05 | 81.60 ▼4.49 | 38.90 ▼2.83 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.05 | 40.33 ▲2.00 | 36.24 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.95 ▼0.19 | 652.98 ▼12.87 | 50.38 ▼0.72 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▼0.02 | 95.08 ▼5.52 | 42.56 ▼4.33 |
Uninstaller [IO: ▲0.06MB] [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
These items require your attentionThe uninstall procedure has failed, leaving 6 options in the database
- Incomplete uninstall procedure, leaving 14 files (0.06MB) in the plugin directory
- (new file) public/ppr/build/index.asset.php
- (new file) public/bookout/build/block.json
- (new file) public/bookout/build/style-index.css
- (new file) images/small_logo_icon.png
- (new file) public/bookout/build/index.js
- (new file) public/bookout/build/index.asset.php
- (new file) public/bookout/build/index.css
- (new file) public/ppr/build/block.json
- (new file) images/logo_icon.png
- (new file) airfieldhub.php
- ...
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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: Call to undefined function register_block_type() in wp-content/plugins/airfieldhub/airfieldhub.php:103
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: airfieldhub, parking fees all in one simple app, block, airfield hub, airfield...
airfieldhub/airfieldhub.php 92% from 13 tests
This is the main PHP file of "AIRFIELDHUB PLUGIN" version 0.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)
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
Good job! No executable or dangerous file extensions detected283 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 94 | 118 | 225 |
JSON | 2 | 0 | 0 | 54 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview 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.18 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | 80.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/small_logo_icon.png | 1.46KB | 0.72KB | ▼ 50.37% |
images/logo_icon.png | 2.25KB | 1.02KB | ▼ 54.67% |