84% theme-duplicator

Code Review | Theme Duplicator

WordPress plugin Theme Duplicator scored84%from 54 tests.

About plugin

  • Plugin page: theme-duplicator
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9
  • WordPress version: 6.3.1
  • First release: Sep 5, 2017
  • Latest release: Nov 21, 2017
  • Number of updates: 23
  • Update frequency: every 3.4 days
  • Top authors: rohit92 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /4,545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by Theme Duplicator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.00 ▼5.83
Dashboard /wp-admin3.31 ▼0.0452.48 ▼11.11
Posts /wp-admin/edit.php3.36 ▲0.0048.68 ▼1.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.25 ▼19.52
Media Library /wp-admin/upload.php3.23 ▲0.0040.17 ▲3.46

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Theme Duplicator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.30 ▼1.081.81 ▲0.0040.97 ▼4.21
Dashboard /wp-admin2,222 ▲375.79 ▼0.08114.08 ▲8.4541.87 ▼4.46
Posts /wp-admin/edit.php2,105 ▲162.02 ▼0.0137.44 ▲0.5132.27 ▼0.31
Add New Post /wp-admin/post-new.php1,527 ▼117.63 ▼0.65687.50 ▲72.1455.34 ▼1.32
Media Library /wp-admin/upload.php1,404 ▲194.28 ▲0.11108.00 ▲4.7348.18 ▲5.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-duplicator/index.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: duplicate theme, network, duplicator, copy theme

theme-duplicator/index.php 92% from 13 tests

Analyzing the main PHP file in "Theme Duplicator" version 1.0
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("theme-duplicator.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin132 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13017132

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions5
▷ Named functions5100.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
No PNG images were found in this plugin