84% perfect-pullquotes

Code Review | Perfect Pullquotes

WordPress plugin Perfect Pullquotes scored84%from 54 tests.

About plugin

  • Plugin page: perfect-pullquotes
  • Plugin version: 1.7.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5.1
  • WordPress version: 6.3.1
  • First release: May 22, 2015
  • Latest release: Sep 9, 2020
  • Number of updates: 147
  • Update frequency: every 13.2 days
  • Top authors: adamdehaven (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

3,000+ active /36,875 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Perfect Pullquotes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.99 ▲0.05
Dashboard /wp-admin3.31 ▲0.0144.16 ▼2.58
Posts /wp-admin/edit.php3.36 ▲0.0044.79 ▲1.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.88 ▼9.95
Media Library /wp-admin/upload.php3.23 ▲0.0031.85 ▲0.10

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Perfect Pullquotes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.28 ▼1.101.75 ▼0.0840.30 ▼6.94
Dashboard /wp-admin2,209 ▲174.86 ▼0.0595.94 ▼11.1337.41 ▼7.73
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0039.38 ▲5.3835.40 ▼0.78
Add New Post /wp-admin/post-new.php1,533 ▼023.36 ▲0.03673.45 ▼4.8251.90 ▼5.55
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0095.68 ▼6.3041.48 ▼3.23

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 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/perfect-pullquotes/perfect-pullquotes.php:10

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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
8 plugin tags: blockquotes, pullquotes, quote, pull quote, blockquote...

perfect-pullquotes/perfect-pullquotes.php Passed 13 tests

The primary PHP file in "Perfect Pullquotes" version 1.7.5 is used by WordPress to initiate all plugin functionality
57 characters long description:
Add beautifully styled pullquotes to your Wordpress posts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin302 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11518103
CSS1141196
Markdown132052
JavaScript134051

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
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
pullquote-left.png0.21KB0.18KB▼ 16.44%