84% pull-quotes

Code Review | Pull Quotes

WordPress plugin Pull Quotes scored84%from 54 tests.

About plugin

  • Plugin page: pull-quotes
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: May 1, 2013
  • Latest release: Mar 26, 2017
  • Number of updates: 10
  • Update frequency: every 142.5 days
  • Top authors: aaroncampbell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,883 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Pull Quotes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.62 ▲0.13
Dashboard /wp-admin3.31 ▲0.0146.41 ▼6.40
Posts /wp-admin/edit.php3.36 ▲0.0154.89 ▲3.61
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.24 ▼18.18
Media Library /wp-admin/upload.php3.24 ▲0.0139.88 ▲4.07

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Pull Quotes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.74 ▲0.191.80 ▼1.1745.71 ▲2.78
Dashboard /wp-admin2,200 ▲265.63 ▲0.0792.89 ▼4.8039.80 ▼6.11
Posts /wp-admin/edit.php2,107 ▲72.01 ▲0.0341.22 ▲2.5635.20 ▼2.79
Add New Post /wp-admin/post-new.php1,525 ▼1023.81 ▲5.58679.77 ▲26.2155.31 ▼7.81
Media Library /wp-admin/upload.php1,404 ▲44.32 ▲0.0897.28 ▼3.9746.04 ▲1.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pull-quotes/pull-quotes.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
There were not plugin tags detected

pull-quotes/pull-quotes.php Passed 13 tests

The main file in "Pull Quotes" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
22 characters long description:
Pull Quotes done right

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin188 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP1142264
JavaScript381658
Markdown122055
CSS10011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods787.50%
▷ Protected methods112.50%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
images/pullquote-2x.png0.95KB0.56KB▼ 40.66%