94% custom-boxer-for-userpro

Code Review | Custom boxer for UserPro

WordPress plugin Custom boxer for UserPro scored 94% from 54 tests.

About plugin

  • Plugin page: custom-boxer-for-...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jun 26, 2020
  • Latest release: Jun 26, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: sakawsar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 276 total downloads

Benchmarks

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

Server-side resources used by Custom boxer for UserPro
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1431.10 ▲8.48
Dashboard /wp-admin3.08 ▲0.0340.45 ▼2.96
Posts /wp-admin/edit.php3.13 ▲0.0350.25 ▲6.60
Add New Post /wp-admin/post-new.php5.44 ▲0.0188.96 ▼569.57
Media Library /wp-admin/upload.php3.02 ▲0.0230.91 ▼3.53

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom boxer for UserPro
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,681 ▲8515.98 ▲0.457.73 ▼0.2448.42 ▼2.61
Dashboard /wp-admin2,970 ▲365.93 ▼0.01137.67 ▼8.55112.72 ▼1.94
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0063.09 ▼1.4992.84 ▼3.94
Add New Post /wp-admin/post-new.php1,672 ▲17218.88 ▲0.04377.38 ▲23.25106.66 ▼2.35
Media Library /wp-admin/upload.php1,810 ▲35.03 ▼0.01154.59 ▲12.54123.77 ▲0.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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 no errors were found, this is by no means 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/custom-boxer-for-userpro/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === custom-boxer-for-userpro === )
The official readme.txt is a good inspiration

custom-boxer-for-userpro/index.php 92% from 13 tests

The entry point to "Custom boxer for UserPro" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("custom-boxer-for-userpro.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin68 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18768

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin