89% easy-theme-plugin-switcher

Code Review | Easy Theme plugin Switcher

WordPress plugin Easy Theme plugin Switcher scored 89% from 54 tests.

About plugin

  • Plugin page: easy-theme-plugin...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 5.8.1
  • First release: Jul 24, 2021
  • Latest release: Jul 24, 2021
  • Number of updates: 2
  • Update frequency: every 13.0 days
  • Top authors: navanathbhosale (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 77 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼140.17ms] Passed 4 tests

Analyzing server-side resources used by Easy Theme plugin Switcher
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1430.08 ▲7.70
Dashboard /wp-admin3.09 ▲0.0447.41 ▼5.98
Posts /wp-admin/edit.php3.18 ▲0.0746.54 ▲0.24
Add New Post /wp-admin/post-new.php5.44 ▲0.0185.85 ▼559.62
Media Library /wp-admin/upload.php3.04 ▲0.0437.50 ▲4.69

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options
easy-wp-tp-switcher-version

Browser metrics Passed 4 tests

Easy Theme plugin Switcher: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,777 ▲18115.86 ▼0.1012.62 ▲2.1344.14 ▼4.85
Dashboard /wp-admin3,065 ▲1346.24 ▲0.25161.32 ▼9.78134.73 ▲17.35
Posts /wp-admin/edit.php2,839 ▲1002.73 ▲0.0166.15 ▼5.53123.78 ▲36.06
Add New Post /wp-admin/post-new.php1,753 ▼1,82418.45 ▲3.67381.87 ▼75.27137.84 ▲27.98
Media Library /wp-admin/upload.php1,910 ▲1035.07 ▲0.03154.80 ▲1.86140.21 ▲23.51

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • easy-wp-tp-switcher-version

Smoke tests Passed 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 Passed 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
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 smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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 plugin switcher, update theme plugin, plugin, theme

easy-theme-plugin-switcher/easy-theme-plugin-switcher.php 77% from 13 tests

The main PHP script in "Easy Theme plugin Switcher" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 161 characters long)
  • Git Repository: An alternative Git repository was detected
  • 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

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
There were no executable files found in this plugin808 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4145215376
JavaScript18166280
CSS1240152

PHP code Passed 2 tests

Analyzing 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.49
Average class complexity33.00
▷ Minimum class complexity3.00
▷ Maximum class complexity63.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG images were found in this plugin