84% easy-pull-quotes

Code Review | Easy Pull Quotes

WordPress plugin Easy Pull Quotes scored84%from 54 tests.

About plugin

  • Plugin page: easy-pull-quotes
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Feb 12, 2016
  • Latest release: Oct 27, 2018
  • Number of updates: 11
  • Update frequency: every 89.9 days
  • Top authors: yingling017 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /3,610 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼9.38ms] Passed 4 tests

This is a short check of server-side resources used by Easy Pull Quotes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.22 ▼1.23
Dashboard /wp-admin3.36 ▲0.0651.77 ▼2.15
Posts /wp-admin/edit.php3.47 ▲0.1252.55 ▼3.12
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.47 ▼31.00
Media Library /wp-admin/upload.php3.28 ▲0.0539.01 ▲0.43

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Pull Quotes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.221.94 ▲0.2941.34 ▼4.09
Dashboard /wp-admin2,194 ▲145.63 ▼0.0990.33 ▼0.8338.97 ▼6.64
Posts /wp-admin/edit.php2,099 ▼41.99 ▼0.0239.28 ▼5.2535.20 ▼0.03
Add New Post /wp-admin/post-new.php1,528 ▲223.21 ▼0.01618.14 ▼65.0370.16 ▲8.17
Media Library /wp-admin/upload.php1,402 ▲24.17 ▼0.0294.49 ▼15.7945.10 ▼4.82

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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 everything seems fine, this is not 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
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/easy-pull-quotes/admin/partials/easy-pull-quotes-admin-display.php
    • > /wp-content/plugins/easy-pull-quotes/public/partials/easy-pull-quotes-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === easy-pull-quotes === )
You can take inspiration from this readme.txt

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

The principal PHP file in "Easy Pull Quotes" v. 1.2.2 is loaded by WordPress automatically on each request
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected300 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12123546203
JavaScript31210660
CSS25837

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.86
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin