90% wprs-shortcodes

Code Review | WPRS Shortcodes

WordPress plugin WPRS Shortcodes scored90%from 54 tests.

About plugin

  • Plugin page: wprs-shortcodes
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Apr 6, 2016
  • Latest release: Jun 18, 2016
  • Number of updates: 19
  • Update frequency: every 3.9 days
  • Top authors: hishaman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,073 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
Install script ran successfully

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

This is a short check of server-side resources used by WPRS Shortcodes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.46 ▲0.53
Dashboard /wp-admin3.31 ▼0.0444.90 ▼15.19
Posts /wp-admin/edit.php3.36 ▲0.0044.43 ▲3.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.66 ▲0.77
Media Library /wp-admin/upload.php3.23 ▲0.0035.68 ▲1.93

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WPRS Shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.191.60 ▼0.0943.42 ▲2.81
Dashboard /wp-admin2,192 ▲125.57 ▼0.1084.81 ▼2.2837.47 ▼0.21
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0035.27 ▼2.6730.80 ▲0.02
Add New Post /wp-admin/post-new.php1,534 ▲818.53 ▼4.87606.50 ▲0.7463.66 ▲9.60
Media Library /wp-admin/upload.php1,403 ▲34.13 ▼0.0599.15 ▲1.4541.76 ▲2.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 25 tag instead of maximum 10
Please take inspiration from this readme.txt

wprs-shortcodes/wprs-shortcodes.php Passed 13 tests

The main PHP file in "WPRS Shortcodes" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
104 characters long description:
An add-on for the WPRichSnippets plugin, which help you display any of the Box elements via a shortcode.

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

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
banner-772x250.png35.75KB15.21KB▼ 57.44%
icon-256x256.png34.19KB13.41KB▼ 60.77%
icon-128x128.png13.66KB5.70KB▼ 58.31%