83% qzzr-shortcode

Code Review | Qzzr Shortcode Plugin

WordPress plugin Qzzr Shortcode Plugin scored83%from 54 tests.

About plugin

  • Plugin page: qzzr-shortcode
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.0
  • WordPress version: 6.3.1
  • First release: Jul 14, 2014
  • Latest release: Jul 10, 2015
  • Number of updates: 9
  • Update frequency: every 40.7 days
  • Top authors: qzzr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /11,664 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.42ms] Passed 4 tests

Server-side resources used by Qzzr Shortcode Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.98 ▼6.26
Dashboard /wp-admin3.31 ▲0.0052.06 ▼3.18
Posts /wp-admin/edit.php3.36 ▲0.0049.19 ▼3.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.31 ▼9.07
Media Library /wp-admin/upload.php3.23 ▲0.0035.96 ▲0.98

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Qzzr Shortcode Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.74 ▲0.391.71 ▼0.2944.09 ▼4.38
Dashboard /wp-admin2,195 ▲215.62 ▼0.0497.61 ▼4.5744.40 ▲0.12
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0033.44 ▼5.8333.08 ▼4.82
Add New Post /wp-admin/post-new.php1,539 ▲1318.33 ▼4.59659.81 ▼37.7457.63 ▲5.82
Media Library /wp-admin/upload.php1,400 ▼34.25 ▲0.0498.20 ▼6.2543.98 ▼4.67

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/qzzr-shortcode/qzzr.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === qzzr-shortcode === )
The official readme.txt might help

qzzr-shortcode/qzzr.php 85% from 13 tests

The primary PHP file in "Qzzr Shortcode Plugin" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("qzzr-shortcode.php" instead of "qzzr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP115831

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin