84% pullquote-shortcode

Code Review | Pullquote Shortcode

WordPress plugin Pullquote Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: pullquote-shortcode
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9
  • WordPress version: 6.3.1
  • First release: Jun 10, 2012
  • Latest release: Apr 16, 2014
  • Number of updates: 19
  • Update frequency: every 35.5 days
  • Top authors: sami.keijonen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,294 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Pullquote Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.13 ▼3.08
Dashboard /wp-admin3.32 ▲0.0143.96 ▼1.46
Posts /wp-admin/edit.php3.37 ▲0.0141.86 ▼1.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.90 ▼3.89
Media Library /wp-admin/upload.php3.24 ▲0.0137.05 ▲3.76

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Pullquote Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.38 ▲0.031.74 ▼0.0845.27 ▲3.81
Dashboard /wp-admin2,195 ▲215.48 ▼0.0880.51 ▼7.5040.65 ▲1.02
Posts /wp-admin/edit.php2,100 ▲32.03 ▲0.0834.86 ▼0.6834.35 ▼2.17
Add New Post /wp-admin/post-new.php1,526 ▼022.96 ▼0.03664.28 ▲6.1155.75 ▼6.53
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.01105.53 ▼11.2546.76 ▼3.13

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pullquote-shortcode/pullquote-shortcode.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Add Pullquote), #2 (Add Pullquote text), #3 (You can also write shortcode), #4 (Pullquote in the front-end)
You can take inspiration from this readme.txt

pullquote-shortcode/pullquote-shortcode.php Passed 13 tests

The primary PHP file in "Pullquote Shortcode" version 0.1.2 is used by WordPress to initiate all plugin functionality
64 characters long description:
Register shortcode [pullquote] and add button to tinyMCE editor.

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
Good job! No executable or dangerous file extensions detected90 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31043
PHP1254834
CSS10113

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
js/pullquotebutton.png1.01KB0.17KB▼ 83.29%