10% rombus-shortcodes

Code Review | Rombus Shortcodes

WordPress plugin Rombus Shortcodes scored10%from 54 tests.

About plugin

  • Plugin page: rombus-shortcodes
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.4
  • WordPress version: 6.3.1
  • First release: Feb 18, 2016
  • Latest release: Feb 18, 2016
  • Number of updates: 5
  • Update frequency: every 30.8 days
  • Top authors: trickmaker (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /597 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/rombus-shortcodes/rombus-shortcodes.php+17
    Trying to access array offset on value of type null

Server metrics [RAM: ▼1.65MB] [CPU: ▼54.89ms] Passed 4 tests

A check of server-side resources used by Rombus Shortcodes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.35 ▼1.125.58 ▼32.21
Dashboard /wp-admin2.37 ▼0.946.36 ▼42.99
Posts /wp-admin/edit.php2.37 ▼0.998.79 ▼44.82
Add New Post /wp-admin/post-new.php2.37 ▼3.526.45 ▼99.55
Media Library /wp-admin/upload.php2.37 ▼0.876.90 ▼29.07

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

A short overview of filesystem and database impact
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
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Rombus Shortcodes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.211.58 ▼0.1536.25 ▼3.74
Dashboard /wp-admin2,206 ▲184.89 ▼0.11114.36 ▲9.5844.47 ▼3.54
Posts /wp-admin/edit.php2,089 ▼32.04 ▼0.0140.87 ▼0.7934.56 ▼5.56
Add New Post /wp-admin/post-new.php1,514 ▼517.73 ▼5.69726.73 ▲60.5451.76 ▲2.21
Media Library /wp-admin/upload.php1,382 ▼64.20 ▼0.0398.10 ▼11.7540.59 ▼7.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/rombus-shortcodes/rombus-shortcodes.php+17
    Trying to access array offset on value of type null
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rombus-shortcodes/rombus-shortcodes.php:16

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

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

Analyzing the main PHP file in "Rombus Shortcodes" version 1.5.0
82 characters long description:
This is an extended plugin to going along with the Rombus Premium WordPress Theme.

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
No dangerous file extensions were detected683 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111944683

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin