84% wp-blockquote-shortcode

Code Review | WP Blockquote Shortcode

WordPress plugin WP Blockquote Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: wp-blockquote-sho...
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Feb 7, 2017
  • Latest release: Jan 10, 2018
  • Number of updates: 9
  • Update frequency: every 37.3 days
  • Top authors: ejointjp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,976 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.76ms] Passed 4 tests

This is a short check of server-side resources used by WP Blockquote Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0341.62 ▼24.33
Dashboard /wp-admin3.33 ▲0.0345.78 ▼2.34
Posts /wp-admin/edit.php3.38 ▲0.0344.72 ▼8.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0394.18 ▲7.69
Media Library /wp-admin/upload.php3.26 ▲0.0334.26 ▼0.31
WP Blockquote /wp-admin/options-general.php?page=wpqb-setting3.2229.12

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Blockquote Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.28 ▼1.102.04 ▼0.5444.11 ▼6.17
Dashboard /wp-admin2,213 ▲255.86 ▼0.02101.64 ▲2.0139.09 ▼1.64
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0533.67 ▼5.5934.12 ▲0.27
Add New Post /wp-admin/post-new.php1,536 ▲1723.02 ▼0.19604.24 ▼2.3762.89 ▲12.07
Media Library /wp-admin/upload.php1,392 ▲14.18 ▲0.0196.61 ▼3.6640.82 ▼3.84
WP Blockquote /wp-admin/options-general.php?page=wpqb-setting7982.0325.9029.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-blockquote-shortcode/wp-blockquote-shortcode.php:39

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)
No browser issues were found

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
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

wp-blockquote-shortcode/wp-blockquote-shortcode.php Passed 13 tests

The principal PHP file in "WP Blockquote Shortcode" v. 0.2.0 is loaded by WordPress automatically on each request
68 characters long description:
It is a WordPress plugin that makes quotation easily with Shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected193 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2333289
PO File1172660
Sass18343
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin