90% shortcodes-finder

Code Review | Shortcodes Finder

WordPress plugin Shortcodes Finder scored90%from 54 tests.

About plugin

  • Plugin page: shortcodes-finder
  • Plugin version: 1.5.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2018
  • Latest release: Nov 15, 2023
  • Number of updates: 102
  • Update frequency: every 20.5 days
  • Top authors: scribit (100%)

Code review

54 tests

User reviews

47 reviews

Install metrics

4,000+ active /62,409 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.02MB] [CPU: ▼3.12ms] Passed 4 tests

This is a short check of server-side resources used by Shortcodes Finder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.80 ▼4.16
Dashboard /wp-admin3.33 ▲0.0252.63 ▲0.78
Posts /wp-admin/edit.php3.38 ▲0.0248.25 ▲5.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.31 ▼12.40
Media Library /wp-admin/upload.php3.25 ▲0.0233.87 ▲3.32
Shortcodes Finder /wp-admin/tools.php?page=shortcodes_finder3.2231.56

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
sf_version
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Shortcodes Finder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲5114.22 ▲0.181.85 ▲0.1838.23 ▼6.22
Dashboard /wp-admin2,193 ▲165.65 ▲0.0692.87 ▼10.1239.72 ▼4.51
Posts /wp-admin/edit.php2,101 ▼21.94 ▼0.0340.35 ▲3.3932.41 ▼3.95
Add New Post /wp-admin/post-new.php1,527 ▲123.09 ▼0.11618.16 ▼115.9154.81 ▼14.64
Media Library /wp-admin/upload.php1,401 ▼24.20 ▼0.10100.47 ▼2.1439.94 ▼5.34
Shortcodes Finder /wp-admin/tools.php?page=shortcodes_finder9292.0027.6727.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: shortcodes, orphan, post, shortcode, search...

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

The principal PHP file in "Shortcodes Finder" v. 1.5.4 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 156 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,191 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP143417091,439
CSS2719329
PO File179100244
JavaScript24634179

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.66
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo.png2.12KB2.14KB0.00%
admin/images/logo_scribit.png1.85KB1.98KB0.00%
admin/images/random.png2.28KB2.26KB▼ 0.86%
admin/images/proofreading.png2.02KB2.02KB0.00%