84% wpmu-allow-all-themes

Code Review | WPMU Allow All Themes

WordPress plugin WPMU Allow All Themes scored84%from 54 tests.

About plugin

  • Plugin page: wpmu-allow-all-th...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 29, 2017
  • Latest release: Jul 29, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: shazdeh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /627 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.95ms] Passed 4 tests

This is a short check of server-side resources used by WPMU Allow All Themes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.65 ▼3.67
Dashboard /wp-admin3.31 ▼0.0347.70 ▼14.55
Posts /wp-admin/edit.php3.36 ▲0.0148.25 ▼7.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.51 ▼22.45
Media Library /wp-admin/upload.php3.23 ▲0.0037.43 ▲0.33

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPMU Allow All Themes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.24 ▼1.142.03 ▲0.3242.04 ▲0.66
Dashboard /wp-admin2,206 ▲214.86 ▼1.00101.74 ▼1.7839.42 ▼4.05
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0335.10 ▼6.0931.95 ▼5.27
Add New Post /wp-admin/post-new.php1,523 ▼1123.19 ▼0.05670.96 ▼9.3780.34 ▲24.62
Media Library /wp-admin/upload.php1,391 ▲94.18 ▼0.1896.89 ▼2.0444.04 ▼1.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpmu-allow-all-themes/wpmu-allow-all-themes.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: theme, admin, wpmu, network

wpmu-allow-all-themes/wpmu-allow-all-themes.php Passed 13 tests

The main file in "WPMU Allow All Themes" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
89 characters long description:
Automatically enable all themes available on your network to all websites in the network.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181714

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions1
▷ Named functions1100.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