84% hype-band-add-on

Code Review | Hype Theme Band Add-on

WordPress plugin Hype Theme Band Add-on scored84%from 54 tests.

About plugin

  • Plugin page: hype-band-add-on
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 24, 2013
  • Latest release: Jun 25, 2013
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: coreymcollins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /886 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.57ms] Passed 4 tests

Server-side resources used by Hype Theme Band Add-on
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.79 ▼1.20
Dashboard /wp-admin3.33 ▲0.0345.31 ▲1.64
Posts /wp-admin/edit.php3.39 ▲0.0343.75 ▼11.21
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.06 ▼9.87
Media Library /wp-admin/upload.php3.26 ▲0.0333.29 ▼4.01
Add New /wp-admin/post-new.php?post_type=tour3.3843.85
Tour Dates /wp-admin/edit.php?post_type=tour3.3037.94

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Hype Theme Band Add-on: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.72 ▲0.511.61 ▲0.1444.21 ▼3.23
Dashboard /wp-admin2,225 ▲445.65 ▼0.0395.22 ▼6.7743.57 ▲3.40
Posts /wp-admin/edit.php2,127 ▲242.03 ▲0.0234.69 ▼7.9334.46 ▼3.06
Add New Post /wp-admin/post-new.php1,549 ▲2323.07 ▼0.33676.40 ▲0.5751.15 ▼14.51
Media Library /wp-admin/upload.php1,427 ▲274.10 ▼0.0898.50 ▼10.3840.62 ▼4.56
Add New /wp-admin/post-new.php?post_type=tour2,2387.64192.3468.39
Tour Dates /wp-admin/edit.php?post_type=tour1,1401.9331.2231.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/hype-band-add-on/hype-band-addon.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: hype, startbox, addon, child

hype-band-add-on/hype-band-addon.php 92% from 13 tests

The main file in "Hype Theme Band Add-on" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("hype-band-add-on.php" instead of "hype-band-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected115 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11346115

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
PNG images were not found in this plugin