84% remove-orphan-shortcodes

Code Review | Remove Orphan Shortcodes

WordPress plugin Remove Orphan Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: remove-orphan-sho...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: May 7, 2013
  • Latest release: Sep 11, 2023
  • Number of updates: 39
  • Update frequency: every 96.9 days
  • Top authors: mekshq (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

1,000+ active /13,548 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: ▼5.24ms] Passed 4 tests

Analyzing server-side resources used by Remove Orphan Shortcodes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.56 ▲3.37
Dashboard /wp-admin3.32 ▲0.0146.57 ▼3.22
Posts /wp-admin/edit.php3.37 ▲0.0150.03 ▲5.79
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.92 ▼22.22
Media Library /wp-admin/upload.php3.24 ▲0.0138.74 ▲1.13

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Remove Orphan Shortcodes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.371.77 ▲0.0944.42 ▲7.94
Dashboard /wp-admin2,206 ▲204.84 ▼0.07108.28 ▼21.0442.30 ▼6.91
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0039.19 ▲2.0233.98 ▲0.14
Add New Post /wp-admin/post-new.php1,514 ▼017.52 ▼0.05690.07 ▲3.4455.89 ▼9.25
Media Library /wp-admin/upload.php1,385 ▼34.27 ▲0.1198.70 ▼10.3540.82 ▼2.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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
Even though no errors were found, this is by no means an exhaustive test

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/remove-orphan-shortcodes/remove-orphan-shortcodes.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: automatic, simple, content, text, editor...

remove-orphan-shortcodes/remove-orphan-shortcodes.php Passed 13 tests

Analyzing the main PHP file in "Remove Orphan Shortcodes" version 1.2
64 characters long description:
Quickly remove unused (orphan) shortcode tags from your content.

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
There were no executable files found in this plugin24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121624

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected