89% clone-page-tree

Code Review | Clone Page Tree

WordPress plugin Clone Page Tree scored89%from 54 tests.

About plugin

  • Plugin page: clone-page-tree
  • Plugin version: 0.1.2
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Jun 5, 2019
  • Latest release: Jan 16, 2021
  • Number of updates: 9
  • Update frequency: every 65.8 days
  • Top authors: cjyabraham (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,025 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Clone Page Tree
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.15 ▼1.48
Dashboard /wp-admin3.33 ▼0.0243.28 ▼22.72
Posts /wp-admin/edit.php3.38 ▲0.0247.45 ▲2.81
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.37 ▲4.29
Media Library /wp-admin/upload.php3.25 ▲0.0234.93 ▲1.67

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Clone Page Tree: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.32 ▼1.051.69 ▼0.4540.87 ▼3.53
Dashboard /wp-admin2,206 ▲155.85 ▲0.75105.61 ▲1.9340.15 ▼5.59
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0235.33 ▼4.8732.34 ▼2.01
Add New Post /wp-admin/post-new.php1,533 ▼023.30 ▲0.10665.68 ▼13.1452.72 ▼11.59
Media Library /wp-admin/upload.php1,388 ▼04.26 ▼0.0192.54 ▼8.7641.50 ▼1.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 ("Clone Page Tree" action.)
You can take inspiration from this readme.txt

clone-page-tree/clone-page-tree.php 92% from 13 tests

The main PHP script in "Clone Page Tree" version 0.1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin91 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1204187
Markdown1304

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions3
▷ Named functions3100.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 were not PNG files found in your plugin