84% pullquote

Code Review | PullQuote

WordPress plugin PullQuote scored 84% from 54 tests.

About plugin

  • Plugin page: pullquote
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Oct 30, 2013
  • Latest release: Apr 17, 2014
  • Number of updates: 4
  • Update frequency: every 42.2 days
  • Top authors: ctietze (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 1,997 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
Install script ran successfully

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

This is a short check of server-side resources used by PullQuote
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.63 ▼4.98
Dashboard /wp-admin3.33 ▲0.0348.09 ▼3.54
Posts /wp-admin/edit.php3.38 ▲0.0351.11 ▼0.86
Add New Post /wp-admin/post-new.php5.91 ▲0.0396.18 ▲3.85
Media Library /wp-admin/upload.php3.25 ▲0.0235.68 ▼0.12

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

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

Browser metrics Passed 4 tests

PullQuote: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲17513.95 ▼0.424.87 ▲3.0139.84 ▼2.97
Dashboard /wp-admin2,203 ▲155.77 ▼0.2799.85 ▼17.2740.65 ▼1.88
Posts /wp-admin/edit.php2,091 ▲21.99 ▼0.0438.65 ▲2.3233.68 ▲0.05
Add New Post /wp-admin/post-new.php1,546 ▲1318.39 ▼4.64635.85 ▼98.1270.20 ▲4.51
Media Library /wp-admin/upload.php1,388 ▼34.29 ▲0.0192.46 ▼10.9342.82 ▼1.65

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pullquote/functions.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/pullquote/pullquote.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pullquote/includes/core.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Plugin Pushquotes) image missing
The official readme.txt might help

pullquote/pullquote.php Passed 13 tests

This is the main PHP file of "PullQuote" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
59 characters long description:
Create shareable pullquotes with the [pullquote] 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
There were no executable files found in this plugin317 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22117135
PHP32517110
CSS17053
Markdown117019

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png41.15KB11.91KB▼ 71.05%
images/facebook.png1.09KB0.17KB▼ 84.05%
tinymce/images/pullquote.png0.49KB0.42KB▼ 13.97%
images/twitter.png1.18KB0.24KB▼ 79.85%