90% replicate-widget

Code Review | Replicate Widget

WordPress plugin Replicate Widget scored90%from 54 tests.

About plugin

  • Plugin page: replicate-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7
  • WordPress version: 6.3.1
  • First release: Jul 28, 2017
  • Latest release: Jul 28, 2017
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: alexvorn2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /768 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.16ms] Passed 4 tests

A check of server-side resources used by Replicate Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.95 ▼4.66
Dashboard /wp-admin3.32 ▲0.0248.63 ▼5.93
Posts /wp-admin/edit.php3.37 ▲0.0251.58 ▼0.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.41 ▼4.73
Media Library /wp-admin/upload.php3.24 ▲0.0234.85 ▼1.30

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Replicate Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.60 ▼0.061.94 ▼0.0443.77 ▲0.58
Dashboard /wp-admin2,192 ▲215.52 ▼0.1484.02 ▼15.3740.89 ▼4.04
Posts /wp-admin/edit.php2,097 ▼31.99 ▲0.0139.01 ▲1.5135.46 ▲0.26
Add New Post /wp-admin/post-new.php1,526 ▼023.50 ▲0.46596.44 ▼91.1443.23 ▼13.72
Media Library /wp-admin/upload.php1,394 ▼34.19 ▲0.0298.93 ▼2.4545.43 ▼2.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
5 plugin tags: duplicate, clone, copy, replicate, widget

replicate-widget/replicate-widget.php Passed 13 tests

The entry point to "Replicate Widget" version 1.0 is a PHP file that has certain tags in its header comment area
134 characters long description:
This plugin will help you to replicate a widget. (Go to: Dashboard -> Appearance -> Widgets, open a widget and click Replicate button)

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 plugin210 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2445120
PHP4404590

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods3
▷ Static methods133.33%
▷ Public methods133.33%
▷ Protected methods00.00%
▷ Private methods266.67%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin