84% simple-shortcode-similar-post

Code Review | Simple Shortcode Similar Post

WordPress plugin Simple Shortcode Similar Post scored 84% from 54 tests.

About plugin

  • Plugin page: simple-shortcode-...
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0.0
  • WordPress version: 6.3.1
  • First release: Nov 12, 2018
  • Latest release: Dec 16, 2018
  • Number of updates: 8
  • Update frequency: every 4.4 days
  • Top authors: ryokurosu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 593 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼2.58ms] Passed 4 tests

Analyzing server-side resources used by Simple Shortcode Similar Post
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0738.20 ▼6.28
Dashboard /wp-admin3.31 ▲0.0146.14 ▼5.96
Posts /wp-admin/edit.php3.36 ▲0.0149.74 ▲3.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0199.66 ▲5.81
Media Library /wp-admin/upload.php3.24 ▲0.0135.62 ▼1.74

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
category_children
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Simple Shortcode Similar Post: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.27 ▼1.091.65 ▼0.1938.04 ▼9.58
Dashboard /wp-admin2,206 ▲214.84 ▼0.04109.53 ▼6.7441.94 ▼4.84
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0241.37 ▲5.9234.09 ▲0.64
Add New Post /wp-admin/post-new.php1,542 ▲2818.34 ▲0.75591.19 ▼79.8650.42 ▼3.74
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0598.02 ▼17.4940.58 ▼6.89

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
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • category_children
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-shortcode-similar-post/simple-shortcode-similar-post.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: post, similar, related

simple-shortcode-similar-post/simple-shortcode-similar-post.php Passed 13 tests

"Simple Shortcode Similar Post" version 1.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
41 characters long description:
This is a better way to view similar post

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin234 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32177149
CSS10033
PO File161132
JavaScript11020

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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