84% beauty-box-block

Code Review | Beauty Box

WordPress plugin Beauty Box scored 84% from 54 tests.

About plugin

  • Plugin page: beauty-box-block
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 12, 2020
  • Latest release: Feb 17, 2020
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: dufresnesteven (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,659 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Beauty Box
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.89 ▲3.59
Dashboard /wp-admin3.31 ▲0.0146.15 ▼3.24
Posts /wp-admin/edit.php3.36 ▲0.0149.09 ▼0.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.42 ▼9.05
Media Library /wp-admin/upload.php3.24 ▲0.0135.13 ▼0.66

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Beauty Box
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.25 ▼1.121.77 ▼0.1542.88 ▼6.62
Dashboard /wp-admin2,206 ▲185.85 ▲0.99101.06 ▼5.9538.30 ▼4.11
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0338.58 ▲1.8233.92 ▲0.98
Add New Post /wp-admin/post-new.php6,587 ▲5,05429.32 ▲6.12881.68 ▲265.9762.21 ▲3.84
Media Library /wp-admin/upload.php1,388 ▲64.23 ▲0.0597.71 ▼2.8143.04 ▲1.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beauty-box-block/plugin.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
2 plugin tags: container, box

beauty-box-block/plugin.php 92% from 13 tests

The main PHP file in "Beauty Box" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("beauty-box-block.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected13,461 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON20013,082
JavaScript570326
PHP261324
CSS12016
Markdown13013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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