89% wp-page-post-widget-clone

Code Review | WP Page Post Widget Clone

WordPress plugin WP Page Post Widget Clone scored89%from 54 tests.

About plugin

  • Plugin page: wp-page-post-widg...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Jul 28, 2017
  • Latest release: Mar 26, 2022
  • Number of updates: 14
  • Update frequency: every 121.7 days
  • Top authors: Mahesh Prajapati (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10,000+ active /32,973 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: ▼4.65ms] Passed 4 tests

An overview of server-side resources used by WP Page Post Widget Clone
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.25 ▼4.20
Dashboard /wp-admin3.31 ▲0.0142.99 ▼5.44
Posts /wp-admin/edit.php3.36 ▲0.0143.04 ▼1.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.46 ▼7.12
Media Library /wp-admin/upload.php3.23 ▲0.0032.76 ▼1.54

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Page Post Widget Clone
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.111.79 ▲0.2540.53 ▼0.75
Dashboard /wp-admin2,192 ▲125.53 ▼0.0984.74 ▼4.1738.01 ▼3.66
Posts /wp-admin/edit.php2,104 ▲42.15 ▲0.1435.52 ▼2.0731.45 ▼4.55
Add New Post /wp-admin/post-new.php1,535 ▲418.29 ▼4.94616.15 ▼85.6962.15 ▲8.65
Media Library /wp-admin/upload.php1,394 ▼94.19 ▲0.0897.08 ▼13.1042.42 ▼8.61

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #3 (icon-128x128.png), #4 (banner-720x250.png)
Please take inspiration from this readme.txt

wp-page-post-widget-clone/wp-page-post-widget-clone.php Passed 13 tests

The entry point to "WP Page Post Widget Clone" version 1.0.1 is a PHP file that has certain tags in its header comment area
120 characters long description:
Wordpress page post widget plugin to generate duplicate post or page and widget with all the contents and it's settings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin170 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13634170

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin