84% jonradio-multiple-themes

Code Review | Multiple Themes

WordPress plugin Multiple Themes scored84%from 54 tests.

About plugin

  • Plugin page: jonradio-multiple...
  • Plugin version: 7.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.3
  • WordPress version: 6.3.1
  • First release: Aug 19, 2012
  • Latest release: Jul 29, 2023
  • Number of updates: 176
  • Update frequency: every 22.7 days
  • Top authors: adiant (90.34%)dgewirtz (10.23%)

Code review

54 tests

User reviews

45 reviews

Install metrics

20,000+ active /366,929 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.00MB] [CPU: ▼8.48ms] Passed 4 tests

A check of server-side resources used by Multiple Themes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.73 ▼3.40
Dashboard /wp-admin3.32 ▼0.0349.93 ▼15.92
Posts /wp-admin/edit.php3.37 ▲0.0153.73 ▼0.18
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.59 ▼14.41
Media Library /wp-admin/upload.php3.24 ▲0.0143.15 ▲7.20
Multiple Themes plugin /wp-admin/options-general.php?page=jr_mt_settings3.1932.75
Multiple Themes plugin /wp-admin/themes.php?page=jr_mt_settings3.1931.23

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
db_upgraded
jr_mt_internal_settings
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
jr_mt_settings
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Multiple Themes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6413.68 ▼0.721.74 ▼0.0940.92 ▼3.79
Dashboard /wp-admin2,228 ▲254.86 ▼0.04109.04 ▼0.8437.90 ▼4.17
Posts /wp-admin/edit.php2,113 ▲132.00 ▼0.0535.37 ▼6.6231.97 ▼3.64
Add New Post /wp-admin/post-new.php1,534 ▼617.73 ▼0.45673.29 ▲33.5670.27 ▲21.09
Media Library /wp-admin/upload.php1,407 ▲104.23 ▲0.03111.39 ▲9.2345.67 ▼0.18
Multiple Themes plugin /wp-admin/options-general.php?page=jr_mt_settings2,3612.1028.5747.32
Multiple Themes plugin /wp-admin/themes.php?page=jr_mt_settings2,3482.1026.1439.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=jr_mt_settings
    • > User deprecated in wp-includes/functions.php+5737
    Function unregister_setting was called with an argument that is deprecated since version 4.7.0! $sanitize_callback is deprecated. The callback from register_setting() is used instead.

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 just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: stylesheet, style, sections, theme, themes...

jonradio-multiple-themes/jonradio-multiple-themes.php Passed 13 tests

The entry point to "Multiple Themes" version 7.1.1 is a PHP file that has certain tags in its header comment area
103 characters long description:
Select different Themes for one or more WordPress Pages, Posts or other non-Admin pages. Or Site Home.

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
Everything looks great! No dangerous files found in this plugin3,528 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP112288833,449
JavaScript267379

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
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%
Functions91
▷ Named functions91100.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
No PNG files were detected