83% aurora-borealis

Code Review | Aurora borealis

WordPress plugin Aurora borealis scored83%from 54 tests.

About plugin

  • Plugin page: aurora-borealis
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Apr 27, 2018
  • Latest release: Apr 27, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: synj24 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /563 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Aurora borealis
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0153.47 ▲6.55
Dashboard /wp-admin3.31 ▲0.0150.49 ▼2.47
Posts /wp-admin/edit.php3.36 ▲0.0155.23 ▲2.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.03 ▼10.61
Media Library /wp-admin/upload.php3.24 ▲0.0139.97 ▲3.73

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Aurora borealis
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.24 ▼0.051.76 ▼0.0638.22 ▼3.49
Dashboard /wp-admin2,200 ▲325.62 ▲0.1089.20 ▼1.5942.16 ▼1.66
Posts /wp-admin/edit.php2,102 ▲22.03 ▲0.0339.29 ▼0.1736.95 ▼4.52
Add New Post /wp-admin/post-new.php1,600 ▲7222.28 ▼1.11666.85 ▼19.7140.69 ▼21.20
Media Library /wp-admin/upload.php1,405 ▲54.20 ▲0.0899.32 ▼11.9746.97 ▼6.26

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
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
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/aurora-borealis/hams.php:65

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

aurora-borealis/hams.php 85% from 13 tests

This is the main PHP file of "Aurora borealis" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aurora-borealis.php" instead of "hams.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 221 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192058

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin