84% nic-duplicate-post-page

Code Review | NIC Duplicate post page

WordPress plugin NIC Duplicate post page scored84%from 54 tests.

About plugin

  • Plugin page: nic-duplicate-pos...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 11, 2023
  • Latest release: Jan 25, 2023
  • Number of updates: 5
  • Update frequency: every 3.0 days
  • Top authors: wpteamindianic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /431 total downloads

Benchmarks

Plugin footprint 83% from 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.07MB] [CPU: ▼5.65ms] Passed 4 tests

A check of server-side resources used by NIC Duplicate post page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.35 ▲0.85
Dashboard /wp-admin3.37 ▲0.0749.56 ▼9.00
Posts /wp-admin/edit.php3.48 ▲0.1350.12 ▼3.43
Add New Post /wp-admin/post-new.php5.97 ▲0.0894.57 ▼8.30
Media Library /wp-admin/upload.php3.29 ▲0.0634.01 ▼1.87

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for NIC Duplicate post page
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲11613.58 ▼0.824.61 ▲2.4242.95 ▲0.69
Dashboard /wp-admin2,207 ▲195.80 ▲0.9097.75 ▼9.0341.83 ▼4.52
Posts /wp-admin/edit.php2,100 ▲82.00 ▼0.0140.78 ▼3.3434.51 ▼5.89
Add New Post /wp-admin/post-new.php1,518 ▼122.91 ▼0.18648.30 ▼33.4259.81 ▲3.61
Media Library /wp-admin/upload.php1,392 ▲14.24 ▼0.0195.13 ▼9.7743.77 ▼0.09

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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
Good news, no errors were detected

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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/nic-duplicate-post-page/admin/partials/nic-duplicate-post-page-admin-display.php
    • > /wp-content/plugins/nic-duplicate-post-page/public/partials/nic-duplicate-post-page-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: comments, spam

nic-duplicate-post-page/nic-duplicate-post-page.php 92% from 13 tests

"NIC Duplicate post page" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 198 characters long)

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
Good job! No executable or dangerous file extensions detected263 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12147572257
JavaScript24546
CSS2080

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.57
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin