89% duplicate-post-meta

Code Review | wp360.pro Duplicate Post Meta

WordPress plugin wp360.pro Duplicate Post Meta scored89%from 54 tests.

About plugin

  • Plugin page: duplicate-post-meta
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 21, 2016
  • Latest release: Oct 21, 2016
  • Number of updates: 4
  • Update frequency: every 2.0 days
  • Top authors: wp360 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /822 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.19ms] Passed 4 tests

Analyzing server-side resources used by wp360.pro Duplicate Post Meta
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.70 ▲0.59
Dashboard /wp-admin3.34 ▲0.0453.23 ▲1.78
Posts /wp-admin/edit.php3.39 ▲0.0447.76 ▼7.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.92 ▼19.29
Media Library /wp-admin/upload.php3.27 ▲0.0439.26 ▲3.20
/wp-admin/admin.php?page=wp360.pro-duplicate-post-meta3.2334.41

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/duplicate-post-meta/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for wp360.pro Duplicate Post Meta
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.18 ▼0.811.69 ▼0.1443.87 ▲3.33
Dashboard /wp-admin2,221 ▲184.89 ▼0.99107.04 ▼10.7842.10 ▼1.09
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0234.57 ▼6.0737.82 ▲0.75
Add New Post /wp-admin/post-new.php1,526 ▼017.69 ▲0.12697.93 ▲4.5756.22 ▲1.82
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.04105.24 ▼13.6746.84 ▼2.60
/wp-admin/admin.php?page=wp360.pro-duplicate-post-meta7622.0625.0225.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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)
Everything seems fine, however 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
The SRP test was a success

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)
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (While editing post click button to select source post), #2 (Select post to copy from and click next), #3 (Select post meta from list to copy.)
  • Plugin Name: Please specify the plugin name on the first line ( === duplicate-post-meta === )
The official readme.txt might help

duplicate-post-meta/wp360.pro-duplicate-post-meta.php 85% from 13 tests

The primary PHP file in "wp360.pro Duplicate Post Meta" version 0.0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("duplicate-post-meta.php" instead of "wp360.pro-duplicate-post-meta.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin165 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14212146
JavaScript11011
JSON1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity5.83
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png44.39KB18.36KB▼ 58.64%
screenshot-2.png11.77KB5.41KB▼ 54.02%
screenshot-3.png14.89KB6.22KB▼ 58.20%