92% clone-maker

Code Review | Clonemaker

WordPress plugin Clonemaker scored 92% from 54 tests.

About plugin

  • Plugin page: clone-maker
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.4
  • WordPress version: 5.8.1
  • First release: Nov 28, 2014
  • Latest release: Dec 20, 2015
  • Number of updates: 36
  • Update frequency: every 10.8 days
  • Top authors: SitnicVictor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 7,033 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Clonemaker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0228.73 ▲6.62
Dashboard /wp-admin3.07 ▲0.0136.41 ▼8.83
Posts /wp-admin/edit.php3.13 ▲0.0236.10 ▼0.49
Add New Post /wp-admin/post-new.php5.45 ▲0.0174.01 ▼579.81
Media Library /wp-admin/upload.php3.02 ▲0.0123.81 ▼0.86

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Clonemaker: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,668 ▲6715.55 ▼0.435.60 ▲0.7075.93 ▲2.21
Dashboard /wp-admin2,932 ▲396.14 ▲0.02114.97 ▼16.36165.51 ▼7.45
Posts /wp-admin/edit.php2,745 ▲393.24 ▼0.0160.86 ▼2.69138.43 ▼3.96
Add New Post /wp-admin/post-new.php3,678 ▲9714.92 ▼0.02412.69 ▼2.76185.39 ▲23.95
Media Library /wp-admin/upload.php1,748 ▼45.51 ▲0.03140.28 ▼7.67184.53 ▲0.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

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
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/clone-maker/clonemaker.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Invalid url: ""
  • Screenshots: Screenshot #1 (Plgin View in sidebar) image required
You can take inspiration from this readme.txt

clone-maker/clonemaker.php 62% from 13 tests

The entry point to "Clonemaker" version 3.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("clone-maker.php" instead of "clonemaker.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 characters long)
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("#")
  • Domain Path: The domain path must begin with a forward slash character ("/#")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
Everything looks great! No dangerous files found in this plugin84 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1442279
CSS1005

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions4
▷ Named functions4100.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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshoot-1.png9.74KB6.76KB▼ 30.62%
screenshot-1.png9.74KB6.76KB▼ 30.62%
page_copy.png0.65KB0.91KB0.00%