89% theme-manager

Code Review | Theme Manager

WordPress plugin Theme Manager scored89%from 54 tests.

About plugin

  • Plugin page: theme-manager
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Oct 20, 2016
  • Latest release: Mar 10, 2017
  • Number of updates: 14
  • Update frequency: every 10.1 days
  • Top authors: lowest (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /6,296 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.32ms] Passed 4 tests

An overview of server-side resources used by Theme Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.63 ▼8.17
Dashboard /wp-admin3.33 ▲0.0348.40 ▼3.49
Posts /wp-admin/edit.php3.38 ▲0.0349.07 ▲0.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.01 ▲2.98
Media Library /wp-admin/upload.php3.26 ▲0.0336.05 ▲1.78
Theme Manager /wp-admin/themes.php?page=manager3.4032.51

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Theme Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲6313.21 ▼1.161.61 ▼0.2239.60 ▼4.90
Dashboard /wp-admin2,204 ▲164.82 ▼0.07109.31 ▼8.5035.92 ▼7.14
Posts /wp-admin/edit.php2,087 ▼52.00 ▲0.0338.92 ▲2.6031.64 ▼1.33
Add New Post /wp-admin/post-new.php1,544 ▲818.14 ▼5.39628.09 ▼25.4167.90 ▲9.85
Media Library /wp-admin/upload.php1,386 ▲44.21 ▲0.0194.71 ▼8.6142.11 ▼1.30
Theme Manager /wp-admin/themes.php?page=manager1,3062.0924.6923.44

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: delete theme, lightweight, dashboard, theme manager, theme...

theme-manager/theme-manager.php 77% from 13 tests

"Theme Manager" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: Please prefix the domain path with a forward slash character ("/")

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
Everything looks great! No dangerous files found in this plugin157 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11426124
JavaScript14019
CSS10014

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin