84% multisite-sidebar-widget-duplicator

Code Review | Zedna Multisite Sidebar Widget Duplicator

WordPress plugin Zedna Multisite Sidebar Widget Duplicator scored84%from 54 tests.

About plugin

  • Plugin page: multisite-sidebar...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Nov 15, 2016
  • Latest release: Mar 12, 2020
  • Number of updates: 6
  • Update frequency: every 201.7 days
  • Top authors: zedna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /702 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.01MB] [CPU: ▼9.49ms] Passed 4 tests

An overview of server-side resources used by Zedna Multisite Sidebar Widget Duplicator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.91 ▼7.08
Dashboard /wp-admin3.31 ▲0.0144.64 ▼5.89
Posts /wp-admin/edit.php3.36 ▲0.0143.80 ▼7.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.60 ▼17.41
Media Library /wp-admin/upload.php3.23 ▲0.0136.34 ▲3.64

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Zedna Multisite Sidebar Widget Duplicator: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.80 ▼0.601.82 ▼0.2542.14 ▼0.08
Dashboard /wp-admin2,206 ▲214.92 ▲0.02107.97 ▼9.6137.41 ▼6.03
Posts /wp-admin/edit.php2,086 ▼02.03 ▼0.0035.10 ▲0.1432.55 ▼1.88
Add New Post /wp-admin/post-new.php1,533 ▲1423.31 ▲0.20612.95 ▼52.8057.27 ▼1.98
Media Library /wp-admin/upload.php1,388 ▼34.25 ▲0.0496.64 ▼2.2339.38 ▼6.06

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multisite-sidebar-widget-duplicator/multisite-sidebar-widget-duplicator.php:12

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 Passed 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
4 plugin tags: refference code, discount, access gate, generator

multisite-sidebar-widget-duplicator/multisite-sidebar-widget-duplicator.php Passed 13 tests

The main PHP script in "Zedna Multisite Sidebar Widget Duplicator" version 1.0 is automatically included on every request by WordPress
72 characters long description:
Duplicate of all widgets in master site for each newly created sub-site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP171419

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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

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