83% labinator-content-types-duplicator

Code Review | Labinator Content Types Duplicator

WordPress plugin Labinator Content Types Duplicator scored83%from 54 tests.

About plugin

  • Plugin page: labinator-content...
  • Plugin version: 1.1.2
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.2
  • WordPress version: 6.3.1
  • First release: Feb 9, 2020
  • Latest release: Apr 3, 2023
  • Number of updates: 18
  • Update frequency: every 63.9 days
  • Top authors: Labinator (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /4,195 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Labinator Content Types Duplicator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.72 ▼0.25
Dashboard /wp-admin3.31 ▼0.0443.29 ▼15.56
Posts /wp-admin/edit.php3.36 ▲0.0044.66 ▼5.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.63 ▼17.29
Media Library /wp-admin/upload.php3.23 ▲0.0034.25 ▲2.25

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Labinator Content Types Duplicator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.42 ▲0.071.58 ▼0.0737.32 ▼2.87
Dashboard /wp-admin2,189 ▲125.50 ▼0.1485.52 ▲1.4740.96 ▼5.38
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0536.01 ▲2.6432.50 ▼2.91
Add New Post /wp-admin/post-new.php1,526 ▼323.50 ▲0.56677.16 ▲4.6749.65 ▼1.65
Media Library /wp-admin/upload.php1,397 ▼64.21 ▲0.01102.53 ▲0.3043.83 ▼0.96

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/labinator-content-types-duplicator/lct-duplicator-common.php:215
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/labinator-content-types-duplicator/compat/lct-duplicator-jetpack.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/labinator-content-types-duplicator/compat/lct-duplicator-wpml.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/labinator-content-types-duplicator/lct-duplicator-admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: copy, pages, posts, clone, content types...

labinator-content-types-duplicator/lct-duplicator.php 77% from 13 tests

"Labinator Content Types Duplicator" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("labinator-content-types-duplicator.php" instead of "lct-duplicator.php")

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
No dangerous file extensions were detected1,697 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP62691561,556
JavaScript32927111
CSS2337130

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions69
▷ Named functions69100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin