90% gtuk-republish-posts

Code Review | Gtuk republish posts

WordPress plugin Gtuk republish posts scored 90% from 54 tests.

About plugin

  • Plugin page: gtuk-republish-posts
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Jul 14, 2016
  • Latest release: Oct 23, 2018
  • Number of updates: 7
  • Update frequency: every 118.7 days
  • Top authors: gtuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,380 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.02MB] [CPU: ▼2.20ms] Passed 4 tests

Server-side resources used by Gtuk republish posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.14 ▼3.32
Dashboard /wp-admin3.33 ▲0.0245.09 ▼1.90
Posts /wp-admin/edit.php3.38 ▲0.0249.48 ▼1.86
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.90 ▼0.46
Media Library /wp-admin/upload.php3.25 ▲0.0234.17 ▼1.73

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 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

A check of browser resources used by Gtuk republish posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.19 ▼1.211.64 ▼0.3741.52 ▼7.17
Dashboard /wp-admin2,210 ▲194.87 ▲0.00109.67 ▼2.1042.29 ▼9.08
Posts /wp-admin/edit.php2,122 ▲332.05 ▲0.0439.06 ▼1.9036.34 ▲0.22
Add New Post /wp-admin/post-new.php1,527 ▼618.49 ▼4.94666.29 ▲66.2960.06 ▲10.18
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0496.92 ▼5.5540.79 ▼3.58

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: pull, republish, update, posts, date...

gtuk-republish-posts/gtuk-republish-posts.php Passed 13 tests

This is the main PHP file of "Gtuk republish posts" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
71 characters long description:
A plugin to add a republish date to pages, posts and custom post types.

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 plugin364 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP13999201
PO File24950136
JavaScript11012
Markdown1508
CSS1007

PHP code Passed 2 tests

This is a short overview 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.27
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1386.67%
▷ Protected methods00.00%
▷ Private methods213.33%
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin