78% tweet-old-post

Code Review | Revive Old Posts - Social Media Auto Post and Scheduling Plugin

WordPress plugin Revive Old Posts - Social Media Auto Post and Scheduling Plugin scored78%from 54 tests.

About plugin

  • Plugin page: tweet-old-post
  • Plugin version: 9.0.21
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Dec 7, 2009
  • Latest release: Sep 27, 2023
  • Number of updates: 312
  • Update frequency: every 16.2 days
  • Top authors: codeinwp (58.65%)ajaymatharu (30.13%)rsocial (10.58%)matharuajay (1.6%)

Code review

54 tests

User reviews

522 reviews

Install metrics

30,000+ active /3,014,671 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲3.19MB] [CPU: ▲22.94ms] 75% from 4 tests

An overview of server-side resources used by Revive Old Posts - Social Media Auto Post and Scheduling Plugin
Please fix the following
  • CPU: You should keep total CPU usage under 500.00ms (currently 3,767.18ms on /wp-admin/admin.php?page=ti-about-tweet_old_post)
PageMemory (MB)CPU Time (ms)
Home /6.63 ▲3.1760.44 ▲20.67
Dashboard /wp-admin6.48 ▲3.1867.69 ▲17.72
Posts /wp-admin/edit.php6.58 ▲3.2276.34 ▲27.30
Add New Post /wp-admin/post-new.php9.13 ▲3.25121.39 ▲31.20
Media Library /wp-admin/upload.php6.39 ▲3.1661.81 ▲26.07
About Us /wp-admin/admin.php?page=ti-about-tweet_old_post7.453,767.18
Exclude Posts /wp-admin/admin.php?page=rop_content_filters6.4460.96
Dashboard /wp-admin/admin.php?page=TweetOldPost6.4460.84
Addons /wp-admin/admin.php?page=rop_addons_page6.3652.99

Server storage [IO: ▲8.20MB] [DB: ▲0.85MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 586 new files
Database: no new tables, 10 new options
New WordPress options
rop_first_install_date
db_upgraded
can_compress_scripts
widget_recent-posts
rop_dashboard_pointers_queued
widget_recent-comments
rop_first_install_version
widget_theysaidso_widget
tweet_old_post_install
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Revive Old Posts - Social Media Auto Post and Scheduling Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,004 ▲26913.20 ▼1.151.48 ▼0.1526.98 ▼12.60
Dashboard /wp-admin2,410 ▲2195.89 ▲0.7898.14 ▼3.5740.41 ▼3.42
Posts /wp-admin/edit.php2,171 ▲792.06 ▲0.0540.69 ▲0.6336.52 ▲1.59
Add New Post /wp-admin/post-new.php1,610 ▲9623.51 ▲5.94622.64 ▼63.5156.81 ▲2.81
Media Library /wp-admin/upload.php1,470 ▲824.31 ▲0.0996.23 ▼19.5842.30 ▼5.61
About Us /wp-admin/admin.php?page=ti-about-tweet_old_post1,1636.67144.4152.20
Exclude Posts /wp-admin/admin.php?page=rop_content_filters1,2375.0277.5346.03
Dashboard /wp-admin/admin.php?page=TweetOldPost1,4036.02133.6653.00
Addons /wp-admin/admin.php?page=rop_addons_page8711.7624.0226.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 12 options
    • rop_data
    • rop_dashboard_pointers_queued
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • tweet_old_post_install
    • rop_first_install_version
    • rop_first_install_date
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tweet-old-post/includes/admin/views/publish_now.php
  • 225× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/tweet-old-post/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiMessagesCantChangeInviteLinkException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/tweet-old-post/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiAuthDelayException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/tweet-old-post/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiGroupAppIsNotInstalledInCommunityException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/tweet-old-post/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiAlbumsLimitException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/tweet-old-post/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiNotFoundException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/tweet-old-post/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiSignatureException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/tweet-old-post/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiAuthValidationException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/tweet-old-post/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiMessagesChatNotAdminException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/tweet-old-post/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiGroupTooManyAddressesException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/tweet-old-post/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphPage.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: social media marketing, social media scheduling, social media automation, share to social media, social media sharing...

tweet-old-post/tweet-old-post.php 92% from 13 tests

Analyzing the main PHP file in "Revive Old Posts - Social Media Auto Post and Scheduling Plugin" version 9.0.21
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 414 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 detected102,954 lines of code in 543 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript109,71610,13461,778
PHP5098,17427,56929,672
CSS68251034,582
SVG2002,702
PO File68498962,155
Markdown797201,752
JSON200306
XML1007

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.79
▷ Minimum class complexity1.00
▷ Maximum class complexity203.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces43
Interfaces6
Traits1
Classes481
▷ Abstract classes81.66%
▷ Concrete classes47398.34%
▷ Final classes10.21%
Methods2,197
▷ Static methods1205.46%
▷ Public methods1,91287.03%
▷ Protected methods663.00%
▷ Private methods2199.97%
Functions69
▷ Named functions1623.19%
▷ Anonymous functions5376.81%
Constants1,750
▷ Global constants221.26%
▷ Class constants1,72898.74%
▷ Public constants1,62794.16%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.36MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo_rop.png4.11KB2.45KB▼ 40.40%
vendor/codeinwp/themeisle-sdk/assets/images/otter/otter-library.png173.18KB173.42KB0.00%
vendor/codeinwp/themeisle-sdk/assets/images/sparks.png2.63KB1.34KB▼ 49.07%
assets/img/to_business.png20.01KB21.75KB0.00%
vendor/codeinwp/themeisle-sdk/assets/images/wplk.png1.92KB1.27KB▼ 33.69%