73% wxy-advanced-multitheme

Code Review | WXY Advanced Multitheme

WordPress plugin WXY Advanced Multitheme scored 73% from 54 tests.

About plugin

  • Plugin page: wxy-advanced-mult...
  • Plugin version: 0.1.2
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.2
  • WordPress version: 6.3.1
  • First release: May 6, 2019
  • Latest release: May 29, 2020
  • Number of updates: 30
  • Update frequency: every 22.1 days
  • Top authors: exoboy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 4,695 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲3.15ms] Passed 4 tests

An overview of server-side resources used by WXY Advanced Multitheme
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.90 ▼5.33
Dashboard /wp-admin3.32 ▲0.0252.42 ▲12.90
Posts /wp-admin/edit.php3.37 ▲0.0145.29 ▲0.19
Add New Post /wp-admin/post-new.php5.94 ▲0.0697.39 ▲15.27
Media Library /wp-admin/upload.php3.24 ▲0.0138.97 ▲4.85
WXY Advanced Multitheme /wp-admin/options-general.php?page=wxy_advanced_multitheme_options_page3.2836.68

Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please fix the following
  • Illegal file modification detected: 1 file (3.58KB) outside of "wp-content/plugins/wxy-advanced-multitheme/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/wxy_advanced_multitheme_filter_plugins.php
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
wxy_advanced_multitheme_blacklist
db_upgraded
widget_recent-comments
wxy_advanced_multitheme_options

Browser metrics Passed 4 tests

Checking browser requirements for WXY Advanced Multitheme
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲7813.26 ▼1.034.19 ▲2.3144.57 ▲2.04
Dashboard /wp-admin2,212 ▲245.84 ▼0.06118.19 ▼2.2442.98 ▲2.51
Posts /wp-admin/edit.php2,098 ▲62.02 ▲0.0539.61 ▲0.4131.33 ▼4.64
Add New Post /wp-admin/post-new.php6,520 ▲4,99220.02 ▼3.31961.41 ▲281.0755.93 ▼1.75
Media Library /wp-admin/upload.php1,397 ▲94.17 ▼0.08104.27 ▼15.7844.28 ▼5.79
WXY Advanced Multitheme /wp-admin/options-general.php?page=wxy_advanced_multitheme_options_page9752.0928.4647.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/wxy-advanced-multitheme/wxy-tools-advanced-multitheme.php+218
    chmod(): No such file or directory
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • wxy_advanced_multitheme_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • wxy_advanced_multitheme_blacklist

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_page_by_path() in wp-content/plugins/wxy-advanced-multitheme/mu-plugins/wxy_advanced_multitheme_filter_plugins.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wxy-advanced-multitheme/extras/wxy-tools-advanced-multitheme-options.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wxy-advanced-multitheme === )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (WXY Advanced Multitheme Posts Menu), #2 (WXY Advanced Multitheme Pages Menu), #3 (WXY Advanced Multitheme Plugin Blacklist), #4 (WXY Advanced Multitheme Search Page Alternate Theme Option)
  • Donate link: Invalid URI found ("/wp-admin/options-general.php?page=wxy_advanced_multitheme_options_page")
The official readme.txt might help

wxy-advanced-multitheme/wxy-tools-advanced-multitheme.php 92% from 13 tests

"WXY Advanced Multitheme" version 0.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wxy-advanced-multitheme.php" instead of "wxy-tools-advanced-multitheme.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
There were no executable files found in this plugin791 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3286263613
JavaScript17095175
CSS1103

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin