84% air-horn

Code Review | Air Horn

WordPress plugin Air Horn scored84%from 54 tests.

About plugin

  • Plugin page: air-horn
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.0
  • WordPress version: 6.3.1
  • First release: Jan 29, 2015
  • Latest release: Jan 29, 2015
  • Number of updates: 2
  • Update frequency: every 4.0 days
  • Top authors: octalmage (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,583 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.99ms] Passed 4 tests

A check of server-side resources used by Air Horn
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.05 ▲3.73
Dashboard /wp-admin3.31 ▲0.0144.38 ▼1.94
Posts /wp-admin/edit.php3.36 ▲0.0147.18 ▼0.30
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.09 ▼9.46
Media Library /wp-admin/upload.php3.23 ▲0.0139.60 ▲5.14

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Air Horn
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,970 ▲19913.27 ▼1.111.62 ▼0.3242.09 ▲4.64
Dashboard /wp-admin2,224 ▲364.94 ▲0.07119.66 ▲5.4644.96 ▼2.47
Posts /wp-admin/edit.php2,107 ▲182.08 ▲0.0639.07 ▼0.0330.93 ▼5.79
Add New Post /wp-admin/post-new.php1,524 ▼917.65 ▼5.53653.90 ▼5.9451.62 ▼3.89
Media Library /wp-admin/upload.php1,403 ▲154.26 ▲0.11103.72 ▲4.1042.39 ▼1.18

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
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 add_action() in wp-content/plugins/air-horn/airhorn.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: air horn, horn, funny, air, prank...

air-horn/airhorn.php 92% from 13 tests

Analyzing the main PHP file in "Air Horn" version 0.0.1
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-horn.php" instead of "airhorn.php")

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
No dangerous file extensions were detected51 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin