90% republish-old-posts

Code Review | Republish Old Posts

WordPress plugin Republish Old Posts scored90%from 54 tests.

About plugin

  • Plugin page: republish-old-posts
  • Plugin version: 1.27
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 23, 2015
  • Latest release: Oct 19, 2023
  • Number of updates: 54
  • Update frequency: every 53.4 days
  • Top authors: Marios Alexandrou (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

4,000+ active /49,163 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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.59ms] Passed 4 tests

Server-side resources used by Republish Old Posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.44 ▲0.92
Dashboard /wp-admin3.39 ▲0.0947.92 ▼1.87
Posts /wp-admin/edit.php3.44 ▲0.0944.86 ▼3.66
Add New Post /wp-admin/post-new.php5.97 ▲0.0982.15 ▼8.76
Media Library /wp-admin/upload.php3.31 ▲0.0934.38 ▼0.08
Republish Old Posts /wp-admin/options-general.php?page=republish-old-posts3.3033.62

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 14 new options
New WordPress options
rop_at_top
db_upgraded
rop_last_update
theysaidso_admin_options
rop_interval_slop
rop_pos
rop_age_limit
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Republish Old Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▼0.101.66 ▲0.0543.85 ▲1.49
Dashboard /wp-admin2,199 ▲195.62 ▼0.0395.30 ▲7.6742.13 ▲0.61
Posts /wp-admin/edit.php2,104 ▲72.04 ▲0.0533.99 ▼7.6734.67 ▼4.09
Add New Post /wp-admin/post-new.php1,529 ▲323.03 ▼0.42674.12 ▲10.6154.98 ▲1.29
Media Library /wp-admin/upload.php1,398 ▼24.19 ▼0.0396.43 ▼11.7042.68 ▼7.11
Republish Old Posts /wp-admin/options-general.php?page=republish-old-posts1,1562.1328.1831.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 13 options in the database
    • can_compress_scripts
    • rop_omit_cats
    • rop_at_top
    • rop_interval_slop
    • rop_age_limit
    • widget_theysaidso_widget
    • widget_recent-comments
    • rop_show_original_pubdate
    • rop_pos
    • theysaidso_admin_options
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: republish, old post, republishing, post promoter, old post promoter...

republish-old-posts/republish-old-posts.php 92% from 13 tests

The principal PHP file in "Republish Old Posts" v. 1.27 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 382 characters long)

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
There were no executable files found in this plugin504 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15739384
CSS1230120

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
No PNG files were detected