84% orabox-theme

Code Review | ORABOX THEME

WordPress plugin ORABOX THEME scored84%from 54 tests.

About plugin

  • Plugin page: orabox-theme
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.0.2
  • WordPress version: 6.3.1
  • First release: Jan 1, 2019
  • Latest release: Jan 1, 2019
  • Number of updates: 12
  • Update frequency: every 6.8 days
  • Top authors: rsempere (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /640 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.84ms] Passed 4 tests

Server-side resources used by ORABOX THEME
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.46 ▲5.70
Dashboard /wp-admin3.31 ▲0.0048.18 ▼6.25
Posts /wp-admin/edit.php3.36 ▲0.0050.76 ▼0.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.13 ▼11.40
Media Library /wp-admin/upload.php3.23 ▲0.0036.44 ▲3.26

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for ORABOX THEME
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5113.62 ▼0.884.98 ▲2.9542.00 ▼3.74
Dashboard /wp-admin2,189 ▲14.84 ▼0.98113.17 ▼7.0142.33 ▲0.45
Posts /wp-admin/edit.php2,072 ▼172.00 ▼0.0356.02 ▲19.7642.35 ▲9.12
Add New Post /wp-admin/post-new.php1,539 ▲2018.54 ▼4.73624.67 ▼40.7960.75 ▲8.50
Media Library /wp-admin/upload.php1,371 ▼144.15 ▼0.1796.90 ▼5.0245.33 ▲3.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 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/orabox-theme/orabox-dashboard-theme.php:19

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: theme, admin dashboard, custom, customize

orabox-theme/orabox-dashboard-theme.php 92% from 13 tests

The main PHP file in "ORABOX THEME" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("orabox-theme.php" instead of "orabox-dashboard-theme.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 plugin217 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1494210
PHP15107

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png69.81KB35.13KB▼ 49.67%