84% wp-general-purpose-shortcodes

Code Review | WP general purpose shortcodes

WordPress plugin WP general purpose shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: wp-general-purpos...
  • Plugin version: 0.2.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Dec 11, 2018
  • Latest release: Jul 26, 2023
  • Number of updates: 13
  • Update frequency: every 130.6 days
  • Top authors: aheadlabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /586 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
The plugin installed gracefully, with no errors

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

A check of server-side resources used by WP general purpose shortcodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.26 ▼15.59
Dashboard /wp-admin3.31 ▲0.0142.14 ▼6.28
Posts /wp-admin/edit.php3.36 ▲0.0148.71 ▲7.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.92 ▼20.02
Media Library /wp-admin/upload.php3.23 ▲0.0035.59 ▲1.83

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP general purpose shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.32 ▼1.074.21 ▲2.3238.13 ▼5.61
Dashboard /wp-admin2,206 ▲215.93 ▲0.09111.09 ▲11.6842.97 ▼0.40
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0240.80 ▲1.8835.50 ▼0.21
Add New Post /wp-admin/post-new.php1,537 ▲2323.02 ▲5.38652.56 ▼47.8656.90 ▲9.39
Media Library /wp-admin/upload.php1,385 ▼34.21 ▼0.0292.31 ▼9.5741.27 ▼0.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-general-purpose-shortcodes/wp-general-purpose-shortcodes.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 need to be fixed:
  • Screenshots: Screenshot #1 (There are no screenshots.) image required
Please take inspiration from this readme.txt

wp-general-purpose-shortcodes/wp-general-purpose-shortcodes.php Passed 13 tests

"WP general purpose shortcodes" version 0.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
46 characters long description:
General purpose shortcodes for WordPress sites

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181815

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin