63% wp-auto-republish

Code Review | RevivePress – Keep your Old Content Evergreen

WordPress plugin RevivePress – Keep your Old Content Evergreen scored63%from 54 tests.

About plugin

  • Plugin page: wp-auto-republish
  • Plugin version: 1.5.4
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Dec 23, 2018
  • Latest release: Sep 14, 2023
  • Number of updates: 99
  • Update frequency: every 17.4 days
  • Top authors: infosatech (100%)

Code review

54 tests

User reviews

104 reviews

Install metrics

9,000+ active /189,398 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.08MB] [CPU: ▲8.13ms] Passed 4 tests

Server-side resources used by RevivePress – Keep your Old Content Evergreen
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.50 ▲1.0444.53 ▲2.94
Dashboard /wp-admin4.41 ▲1.1157.67 ▲4.00
Posts /wp-admin/edit.php4.46 ▲1.1060.34 ▲13.87
Add New Post /wp-admin/post-new.php6.95 ▲1.06104.52 ▲11.72
Media Library /wp-admin/upload.php4.33 ▲1.1052.02 ▲14.77
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius4.6841.90

Server storage [IO: ▲4.31MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 338 new files
Database: 4 new tables, 15 new options
New tables
wp_actionscheduler_actions
wp_actionscheduler_claims
wp_actionscheduler_groups
wp_actionscheduler_logs
New WordPress options
schema-ActionScheduler_StoreSchema
theysaidso_admin_options
fs_debug_mode
schema-ActionScheduler_LoggerSchema
wpar_plugin_installed_time
widget_theysaidso_widget
fs_accounts
can_compress_scripts
revivepress_install_date
action_scheduler_hybrid_store_demarkation
...

Browser metrics Passed 4 tests

A check of browser resources used by RevivePress – Keep your Old Content Evergreen
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,996 ▲26113.36 ▼1.291.70 ▼0.0627.75 ▼15.66
Dashboard /wp-admin2,375 ▲1844.95 ▲0.05107.56 ▼7.3049.29 ▲4.51
Posts /wp-admin/edit.php2,214 ▲1282.16 ▲0.1041.84 ▲3.7842.91 ▲7.55
Add New Post /wp-admin/post-new.php1,599 ▲8523.38 ▲5.87663.41 ▲61.7564.41 ▲3.37
Media Library /wp-admin/upload.php1,510 ▲1194.25 ▲0.0299.30 ▲0.8951.51 ▲7.37
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,1111.7728.1026.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-auto-republish/vendor/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_actionscheduler_claims
    • wp_actionscheduler_groups
    • wp_actionscheduler_actions
    • wp_actionscheduler_logs
  • Zombie WordPress options detected upon uninstall: 14 options
    • revivepress_install_date
    • widget_recent-posts
    • fs_active_plugins
    • revivepress_version
    • schema-ActionScheduler_LoggerSchema
    • fs_accounts
    • widget_theysaidso_widget
    • fs_debug_mode
    • db_upgraded
    • theysaidso_admin_options
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 44× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/wp-auto-republish/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Lock' not found in wp-content/plugins/wp-auto-republish/vendor/woocommerce/action-scheduler/classes/ActionScheduler_OptionLock.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/wp-auto-republish/vendor/woocommerce/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Schedule_Deprecated' not found in wp-content/plugins/wp-auto-republish/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/wp-auto-republish/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/wp-auto-republish/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_AdminView_Deprecated' not found in wp-content/plugins/wp-auto-republish/vendor/woocommerce/action-scheduler/classes/ActionScheduler_AdminView.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schema' not found in wp-content/plugins/wp-auto-republish/vendor/woocommerce/action-scheduler/classes/schema/ActionScheduler_StoreSchema.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Logger' not found in wp-content/plugins/wp-auto-republish/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_wpCommentLogger.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Action_Scheduler\\Migration\\LogMigrator' not found in wp-content/plugins/wp-auto-republish/vendor/woocommerce/action-scheduler/classes/migration/DryRun_LogMigrator.php:13

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 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots lack descriptions #3, #4 in wp-auto-republish/assets to your readme.txt
You can take inspiration from this readme.txt

wp-auto-republish/wp-auto-republish.php 92% from 13 tests

The main PHP script in "RevivePress – Keep your Old Content Evergreen" version 1.5.4 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 233 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin47,721 lines of code in 278 files:
LanguageFilesBlank linesComment linesLines of code
PHP25010,29924,52744,284
JSON1002,479
PO File1298407740
JavaScript83472200
CSS1821618

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity36.79
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces13
Interfaces3
Traits6
Classes152
▷ Abstract classes1711.18%
▷ Concrete classes13588.82%
▷ Final classes21.48%
Methods2,107
▷ Static methods30014.24%
▷ Public methods1,46569.53%
▷ Protected methods2059.73%
▷ Private methods43720.74%
Functions141
▷ Named functions12286.52%
▷ Anonymous functions1913.48%
Constants183
▷ Global constants10356.28%
▷ Class constants8043.72%
▷ Public constants80100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/css/images/ui-icons_777777_256x240.png6.94KB4.18KB▼ 39.78%
assets/css/images/ui-icons_555555_256x240.png6.91KB4.18KB▼ 39.47%
assets/css/images/ui-icons_cc0000_256x240.png4.51KB4.18KB▼ 7.28%
assets/css/images/ui-icons_444444_256x240.png6.92KB4.18KB▼ 39.61%