84% simple-pull-quote

Code Review | Simple Pull Quote

WordPress plugin Simple Pull Quote scored84%from 54 tests.

About plugin

  • Plugin page: simple-pull-quote
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.2.2
  • WordPress version: 6.3.1
  • First release: Apr 23, 2009
  • Latest release: Jul 7, 2019
  • Number of updates: 99
  • Update frequency: every 37.7 days
  • Top authors: llamaman (72.73%)themightymo (28.28%)

Code review

54 tests

User reviews

10 reviews

Install metrics

2,000+ active /71,745 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.75ms] Passed 4 tests

Analyzing server-side resources used by Simple Pull Quote
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.54 ▼0.78
Dashboard /wp-admin3.33 ▲0.0248.02 ▼4.89
Posts /wp-admin/edit.php3.38 ▲0.0248.56 ▼0.54
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.25 ▼12.80
Media Library /wp-admin/upload.php3.25 ▲0.0239.91 ▲6.44

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Simple Pull Quote
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲3014.27 ▼0.511.84 ▼0.2643.83 ▲1.71
Dashboard /wp-admin2,192 ▲185.55 ▼0.0587.52 ▼11.2336.99 ▼5.44
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0339.41 ▲3.3335.79 ▼0.94
Add New Post /wp-admin/post-new.php1,525 ▼423.12 ▼0.04691.95 ▲68.2753.59 ▼5.09
Media Library /wp-admin/upload.php1,394 ▼64.17 ▼0.02107.51 ▲8.2946.94 ▲5.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-pull-quote/simple-pull-quote_tinymce.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-pull-quote/simple-pull-quote_tinymce.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Simple Pull Quote plugin in action!), #2 (Add pullquotes via the Wordpress TinyMCE editor.), #3 (Add pullquotes via the Wordpress HTML editor.)
The official readme.txt might help

simple-pull-quote/simple-pull-quote.php Passed 13 tests

The main PHP file in "Simple Pull Quote" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Easily add pull quotes to blog posts using shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected166 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3176775
PHP2254570
CSS10020
XML1001

PHP code Passed 2 tests

Analyzing 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.15
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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/quote.png0.39KB0.31KB▼ 21.78%