78% wp-share-old-post-lite

Code Review | Share Old Post LITE

WordPress plugin Share Old Post LITE scored78%from 54 tests.

About plugin

  • Plugin page: wp-share-old-post...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: May 29, 2014
  • Latest release: Jun 5, 2014
  • Number of updates: 40
  • Update frequency: every 0.2 days
  • Top authors: HammamiGroup (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /2,527 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.10MB] [CPU: ▼4.08ms] Passed 4 tests

Server-side resources used by Share Old Post LITE
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.76 ▼3.61
Dashboard /wp-admin3.41 ▲0.0654.17 ▼13.95
Posts /wp-admin/edit.php3.52 ▲0.1749.62 ▼4.32
Add New Post /wp-admin/post-new.php6.02 ▲0.14379.66 ▲272.42
Media Library /wp-admin/upload.php3.33 ▲0.1043.26 ▲5.57
  Facebook /wp-admin/admin.php?page=shareoldpost3.2736.05
  Twitter /wp-admin/admin.php?page=easypublisher_twitter3.2731.22

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Share Old Post LITE
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.35 ▲0.171.83 ▲0.1045.52 ▲4.20
Dashboard /wp-admin2,225 ▲455.61 ▲0.0495.34 ▲4.2643.82 ▼1.14
Posts /wp-admin/edit.php2,127 ▲271.99 ▲0.0333.38 ▼4.6136.08 ▼1.11
Add New Post /wp-admin/post-new.php1,548 ▲2022.99 ▼0.04659.72 ▼22.2147.99 ▼15.36
Media Library /wp-admin/upload.php1,424 ▲244.20 ▲0.0396.44 ▼16.5944.95 ▼0.70
  Facebook /wp-admin/admin.php?page=shareoldpost1,0611.9924.9231.44
  Twitter /wp-admin/admin.php?page=easypublisher_twitter1,1161.9922.9430.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easypublisher_twitter
    • > Notice in wp-content/plugins/wp-share-old-post-lite/action_twitter.php+147
    Undefined variable: data
    • > GET request to /wp-admin/admin.php?page=shareoldpost
    • > Notice in wp-content/plugins/wp-share-old-post-lite/action_facebook.php+117
    Undefined index: state
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easypublisher_twitter
    • > Notice in wp-content/plugins/wp-share-old-post-lite/action_twitter.php+181
    Undefined index: category

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-share-old-post-lite/wp-share-old-post-lite.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

wp-share-old-post-lite/wp-share-old-post-lite.php 92% from 13 tests

The main PHP script in "Share Old Post LITE" version 1.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 256 characters long)

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin362 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53055284
CSS116077
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/WP-ShareOld_PagesPlugin.png11.45KB4.37KB▼ 61.87%
img/twitter.png1.47KB1.50KB0.00%
img/Bouton_LiteSOP1.png5.11KB1.97KB▼ 61.49%
img/Google-plus-icon.png0.65KB0.66KB0.00%
img/facebook.png1.43KB1.58KB0.00%