84% simple-clone-widget

Code Review | Simple clone widget

WordPress plugin Simple clone widget scored84%from 54 tests.

About plugin

  • Plugin page: simple-clone-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Nov 4, 2016
  • Latest release: Mar 12, 2018
  • Number of updates: 7
  • Update frequency: every 70.9 days
  • Top authors: Roboyaroslava (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /1,652 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
Install script ran successfully

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

Analyzing server-side resources used by Simple clone widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.19 ▼7.20
Dashboard /wp-admin3.31 ▲0.0150.01 ▼5.12
Posts /wp-admin/edit.php3.37 ▲0.0149.58 ▼4.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.55 ▼29.92
Media Library /wp-admin/upload.php3.24 ▲0.0138.71 ▲5.51

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Simple clone widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.37 ▼0.281.84 ▲0.2040.17 ▼3.81
Dashboard /wp-admin2,197 ▲175.59 ▼0.1190.02 ▼5.8244.54 ▼3.73
Posts /wp-admin/edit.php2,105 ▲51.98 ▲0.0340.95 ▲2.7739.21 ▲4.76
Add New Post /wp-admin/post-new.php1,530 ▲422.89 ▼0.12682.66 ▼22.3265.39 ▲12.21
Media Library /wp-admin/upload.php1,399 ▼14.21 ▲0.01108.18 ▼0.1150.32 ▲4.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please 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/simple-clone-widget/simple-clone-widget.php:32

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: duplicate, widget duplicator, widget, duplicate widget plugin, widget clone...

simple-clone-widget/simple-clone-widget.php Passed 13 tests

This is the main PHP file of "Simple clone widget" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
45 characters long description:
Simple clone widget with button "Clone this!"

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected117 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP172596
CSS10021

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin