84% quotable

Code Review | Quotable

WordPress plugin Quotable scored 84% from 53 tests.

About plugin

  • Plugin page: quotable
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4
  • WordPress version: 5.8.1
  • First release: Apr 7, 2014
  • Latest release: May 5, 2020
  • Number of updates: 50
  • Update frequency: every 44.4 days
  • Top authors: josiahsprague (100%)

Code review

53 tests

User reviews

7 reviews

Install metrics

100+ active / 9,034 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.07MB] [CPU: ▼276.22ms] Passed 4 tests

This is a short check of server-side resources used by Quotable
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1228.61 ▲5.74
Dashboard /wp-admin3.04 ▼0.0128.94 ▼6.91
Posts /wp-admin/edit.php3.11 ▲0.0132.58 ▼12.82
Add New Post /wp-admin/post-new.php5.09 ▼0.3477.03 ▼1,072.32
Media Library /wp-admin/upload.php3.05 ▲0.0528.04 ▼12.84

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 1 new option
New WordPress options
quotable_activation

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quotable
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,973 ▲39124.83 ▲9.3611.55 ▲3.5046.41 ▼1.76
Dashboard /wp-admin3,193 ▲34013.93 ▲7.97300.91 ▲172.33131.08 ▲19.36
Posts /wp-admin/edit.php3,013 ▲30710.75 ▲7.93178.89 ▲112.2789.89 ▼6.51
Add New Post /wp-admin/post-new.php1,872 ▼16619.47 ▼0.04274.87 ▼101.03111.84 ▲4.92
Media Library /wp-admin/upload.php2,001 ▲22612.23 ▲7.22174.90 ▲25.80108.22 ▼3.77

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
  • Zombie WordPress options detected upon uninstall: 1 option
    • quotable_activation

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/quotable/admin/partials/quotable-settings-checkboxes.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/quotable/admin/partials/quotable-settings-header.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/quotable/admin/partials/quotable-metabox.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: quotes, share buttons, social media, twitter, medium

quotable/quotable.php Passed 13 tests

Analyzing the main PHP file in "Quotable" version 2.1.0
121 characters long description:
Adds buttons to quotes and text selection that make it quick and easy for your readers to share quotes from your website.

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
Success! There were no dangerous files found in this plugin1,066 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP15125569503
PO File34551224
JavaScript41512196
JSON500128
CSS11114
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.71
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods3487.18%
▷ Protected methods00.00%
▷ Private methods512.82%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin