84% strshuffle

Code Review | strshuffle

WordPress plugin strshuffle scored 84% from 54 tests.

About plugin

  • Plugin page: strshuffle
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 26, 2013
  • Latest release: Oct 26, 2013
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: max.doom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 635 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.78ms] Passed 4 tests

Server-side resources used by strshuffle
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.27 ▼6.93
Dashboard /wp-admin3.31 ▲0.0044.67 ▼6.62
Posts /wp-admin/edit.php3.36 ▲0.0045.80 ▼1.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.10 ▼8.08
Media Library /wp-admin/upload.php3.23 ▲0.0033.43 ▼0.73

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
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by strshuffle
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.29 ▼1.041.73 ▼0.1038.66 ▼5.78
Dashboard /wp-admin2,203 ▲175.85 ▼0.0498.07 ▼22.7238.20 ▼7.49
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0139.07 ▲1.5335.45 ▲2.24
Add New Post /wp-admin/post-new.php1,533 ▼023.34 ▲0.15677.14 ▲1.4259.85 ▼0.07
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0096.67 ▼17.8241.95 ▼7.57

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 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 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/strshuffle/strshuffle.php:18

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === strshuffle === )
  • Requires at least: Invalid version format
You can take inspiration from this readme.txt

strshuffle/strshuffle.php Passed 13 tests

The main PHP file in "strshuffle" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
A simple shortcode to shuffle the chars in a string. (See str_shuffle)

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 detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1297

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin