94% hello-saban

Code Review | Hello Saban

WordPress plugin Hello Saban scored 94% from 53 tests.

About plugin

  • Plugin page: hello-saban
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.2
  • WordPress version: 5.8.1
  • First release: Jan 17, 2018
  • Latest release: Jan 17, 2018
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: nathaningram (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 350 total downloads

Benchmarks

Plugin footprint Passed 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.15MB] [CPU: ▼336.63ms] Passed 4 tests

A check of server-side resources used by Hello Saban
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.80 ▲0.0826.05 ▲6.25
Dashboard /wp-admin2.98 ▼0.0727.59 ▼9.03
Posts /wp-admin/edit.php3.03 ▼0.0731.22 ▼8.00
Add New Post /wp-admin/post-new.php4.99 ▼0.4480.35 ▼1,326.92
Media Library /wp-admin/upload.php2.98 ▼0.0129.60 ▼2.58

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Hello Saban
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,864 ▲34915.73 ▲1.988.27 ▲0.7751.20 ▼0.64
Dashboard /wp-admin2,953 ▲876.44 ▲0.56143.06 ▲5.61114.37 ▲5.02
Posts /wp-admin/edit.php2,718 ▲122.95 ▲0.2671.93 ▲8.2384.88 ▼8.82
Add New Post /wp-admin/post-new.php2,068 ▲21516.42 ▼2.50389.96 ▲29.55118.37 ▲16.13
Media Library /wp-admin/upload.php1,792 ▲175.31 ▲0.32152.01 ▼2.88113.36 ▲3.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-saban/hello-saban.php:84

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
No tags were detected

hello-saban/hello-saban.php Passed 13 tests

The main PHP file in "Hello Saban" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
114 characters long description:
This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation of Alabama football fans.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin141 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP14027128
JavaScript20911
SVG1002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin