84% priority-shortcodes

Code Review | Priority Shortcodes

WordPress plugin Priority Shortcodes scored 84% from 54 tests.

About plugin

  • Plugin page: priority-shortcodes
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2014
  • Latest release: Oct 29, 2022
  • Number of updates: 11
  • Update frequency: every 269.2 days
  • Top authors: swinggraphics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,268 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.52ms] Passed 4 tests

A check of server-side resources used by Priority Shortcodes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.68 ▼3.87
Dashboard /wp-admin3.31 ▲0.0146.45 ▼2.63
Posts /wp-admin/edit.php3.36 ▲0.0146.73 ▼0.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.42 ▼9.26
Media Library /wp-admin/upload.php3.24 ▲0.0135.57 ▼2.33

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Priority Shortcodes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.32 ▼1.031.70 ▼0.7145.43 ▼2.80
Dashboard /wp-admin2,206 ▲154.83 ▼0.2699.04 ▼23.2939.50 ▼4.90
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0439.70 ▲3.9833.99 ▼1.70
Add New Post /wp-admin/post-new.php1,522 ▼423.13 ▲0.07599.86 ▼70.9353.09 ▼11.87
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0697.33 ▲1.5845.09 ▲2.85

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 add_filter() in wp-content/plugins/priority-shortcodes/priority-shortcodes.php:52

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: tinymce, shortcodes, classic editor

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

"Priority Shortcodes" version 2.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
62 characters long description:
Processes specific shortcodes before wpautop and do_shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191925

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued 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%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
No PNG files were detected