84% ot-admin-theme

Code Review | OT Admin Theme

WordPress plugin OT Admin Theme scored84%from 54 tests.

About plugin

  • Plugin page: ot-admin-theme
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.3
  • WordPress version: 6.3.1
  • First release: Aug 24, 2015
  • Latest release: Aug 24, 2015
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: jobayer007 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,201 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by OT Admin Theme
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0244.47 ▲1.46
Dashboard /wp-admin3.38 ▼0.0151.51 ▼23.77
Posts /wp-admin/edit.php3.49 ▲0.0949.75 ▼3.86
Add New Post /wp-admin/post-new.php5.96 ▲0.0390.80 ▼21.78
Media Library /wp-admin/upload.php3.30 ▲0.0340.07 ▲2.85

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for OT Admin Theme
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.42 ▲0.071.80 ▼0.0745.64 ▲5.73
Dashboard /wp-admin2,216 ▲365.59 ▼0.0787.66 ▼5.7643.20 ▼1.98
Posts /wp-admin/edit.php2,118 ▲152.01 ▼0.0136.79 ▼6.6537.53 ▲0.66
Add New Post /wp-admin/post-new.php1,542 ▲1323.36 ▲0.03667.59 ▲21.3847.76 ▼6.79
Media Library /wp-admin/upload.php1,415 ▲154.20 ▲0.0198.49 ▼3.9343.22 ▼0.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • 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
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
The following issues need your attention
  • 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/ot-admin-theme/ot-admin-theme.php:31

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ot-admin-theme === )
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

ot-admin-theme/ot-admin-theme.php Passed 13 tests

The main PHP script in "OT Admin Theme" version 1.0 is automatically included on every request by WordPress
75 characters long description:
This is an awesome Plugins to customize color for your WordPress Admin area

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
There were no executable files found in this plugin77 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121677

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions11
▷ Named functions11100.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
No PNG files were detected