74% airfieldhub

Code Review | AIRFIELDHUB PLUGIN

WordPress plugin AIRFIELDHUB PLUGIN scored74%from 54 tests.

About plugin

  • Plugin page: airfieldhub
  • Plugin version: 0.1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0
  • WordPress version: 6.3.1
  • First release: Nov 3, 2022
  • Latest release: Nov 3, 2022
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: airfieldhub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /456 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.94 ▼2.48
Dashboard /wp-admin3.31 ▼0.0445.61 ▼10.08
Posts /wp-admin/edit.php3.36 ▲0.0046.52 ▼5.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.76 ▼10.85
Media Library /wp-admin/upload.php3.23 ▲0.0035.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.59 ▲0.241.71 ▼0.1642.28 ▲1.69
Dashboard /wp-admin2,198 ▲185.58 ▼0.0581.60 ▼4.4938.90 ▼2.83
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0540.33 ▲2.0036.24 ▲0.43
Add New Post /wp-admin/post-new.php1,526 ▼222.95 ▼0.19652.98 ▼12.8750.38 ▼0.72
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0295.08 ▼5.5242.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 attention
  • 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
    • ...
  • The uninstall procedure has failed, leaving 6 options in the database
    • 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

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:
LanguageFilesBlank linesComment linesLines of code
PHP394118225
JSON20054
CSS2002
JavaScript2002

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 code0.18
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods480.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/small_logo_icon.png1.46KB0.72KB▼ 50.37%
images/logo_icon.png2.25KB1.02KB▼ 54.67%