83% suffusion-shortcodes

Code Review | Suffusion Shortcodes

WordPress plugin Suffusion Shortcodes scored83%from 54 tests.

About plugin

  • Plugin page: suffusion-shortcodes
  • Plugin version: 1.05
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 21, 2012
  • Latest release: Feb 22, 2016
  • Number of updates: 15
  • Update frequency: every 83.3 days
  • Top authors: sayontan (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /12,566 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼2.12ms] Passed 4 tests

An overview of server-side resources used by Suffusion Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.07 ▼0.47
Dashboard /wp-admin3.42 ▲0.1247.92 ▼2.81
Posts /wp-admin/edit.php3.53 ▲0.1850.66 ▲0.37
Add New Post /wp-admin/post-new.php6.00 ▲0.1295.34 ▼4.84
Media Library /wp-admin/upload.php3.34 ▲0.1234.80 ▼0.37
Suffusion Shortcodes /wp-admin/themes.php?page=suffusion-shortcodes3.4533.51

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Suffusion Shortcodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.52 ▼0.755.43 ▲3.4444.31 ▲1.22
Dashboard /wp-admin2,213 ▲254.87 ▼0.01107.56 ▲1.4941.56 ▼0.54
Posts /wp-admin/edit.php2,093 ▲12.04 ▼0.0139.91 ▲2.5435.29 ▼0.11
Add New Post /wp-admin/post-new.php1,531 ▲1723.00 ▲5.35591.29 ▼99.8563.82 ▲10.96
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.0497.31 ▼12.9242.81 ▼5.76
Suffusion Shortcodes /wp-admin/themes.php?page=suffusion-shortcodes1,0122.0323.8560.50

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/suffusion-shortcodes/suffusion-shortcodes.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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 need to be fixed:
  • Tested up to: Version format is invalid
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

suffusion-shortcodes/suffusion-shortcodes.php 92% from 13 tests

The principal PHP file in "Suffusion Shortcodes" v. 1.05 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 326 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected646 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP267117565
CSS23380
JavaScript1031

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity57.00
▷ Minimum class complexity7.00
▷ Maximum class complexity107.00
Average method complexity4.73
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected