84% quoteability

Code Review | Quoteability

WordPress plugin Quoteability scored84%from 54 tests.

About plugin

  • Plugin page: quoteability
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.2.3
  • WordPress version: 6.3.1
  • First release: Jul 30, 2015
  • Latest release: Aug 4, 2015
  • Number of updates: 9
  • Update frequency: every 0.6 days
  • Top authors: bmarshall511 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,346 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Quoteability
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.57 ▼6.55
Dashboard /wp-admin3.33 ▲0.0248.43 ▲2.10
Posts /wp-admin/edit.php3.44 ▲0.0849.11 ▼5.28
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.89 ▼6.83
Media Library /wp-admin/upload.php3.25 ▲0.0237.05 ▲0.98

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Quoteability
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲12213.59 ▼0.689.33 ▲6.8740.12 ▼3.43
Dashboard /wp-admin2,203 ▲125.87 ▲0.8299.25 ▼4.6239.50 ▼3.93
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0340.17 ▼0.4334.37 ▲2.23
Add New Post /wp-admin/post-new.php1,533 ▲523.23 ▲4.81673.73 ▲27.8255.84 ▲3.17
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.11110.20 ▲1.3848.67 ▲2.46

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
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/quoteability/quoteability.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: twitter, drop quotes, shareable, blockquotes, quotes...

quoteability/quoteability.php Passed 13 tests

Analyzing the main PHP file in "Quoteability" version 1.0.3
102 characters long description:
A simple, light-weight WordPress plugin that allows you to easily add shareable quotes via shortcodes.

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 plugin145 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP42636104
CSS122328
SVG10012
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 were not PNG files found in your plugin