83% quoty

Code Review | Quoty

WordPress plugin Quoty scored 83% from 54 tests.

About plugin

  • Plugin page: quoty
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 5.8.1
  • First release: Jan 23, 2016
  • Latest release: Feb 16, 2016
  • Number of updates: 26
  • Update frequency: every 0.9 days
  • Top authors: tntstudiohr (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active / 5,943 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.07MB] [CPU: ▼130.74ms] Passed 4 tests

Analyzing server-side resources used by Quoty
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0834.37 ▲2.02
Dashboard /wp-admin3.14 ▲0.0846.75 ▲3.80
Posts /wp-admin/edit.php3.25 ▲0.1444.81 ▼0.15
Add New Post /wp-admin/post-new.php5.49 ▲0.06127.71 ▼521.63
Media Library /wp-admin/upload.php3.08 ▲0.0831.90 ▼3.20
Quoty Settings /wp-admin/options-general.php?page=quoty3.0528.15

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 1 new option
New WordPress options
quoty_options

Browser metrics Passed 4 tests

Checking browser requirements for Quoty
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,818 ▲22217.95 ▲2.3436.54 ▲27.9045.86 ▼2.85
Dashboard /wp-admin2,979 ▲485.89 ▼0.27144.58 ▼8.32106.71 ▼2.56
Posts /wp-admin/edit.php2,745 ▲62.70 ▼0.1570.33 ▲2.6297.48 ▲10.05
Add New Post /wp-admin/post-new.php1,622 ▼6121.58 ▲2.83326.35 ▼88.06120.92 ▲11.66
Media Library /wp-admin/upload.php1,819 ▲715.02 ▲0.03150.76 ▲20.43113.87 ▼3.96
Quoty Settings /wp-admin/options-general.php?page=quoty1,2172.4555.2667.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • quoty_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/quoty/public/partials/quoty-public-display.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Quoty_Admin' not found in wp-content/plugins/quoty/admin/settings/class-quoty-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/quoty/admin/partials/quoty-admin-display.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === quoty === )
  • Screenshots: Screenshot #2 (Quoty Settings) image not found
Please take inspiration from this readme.txt

quoty/quoty.php Passed 13 tests

This is the main PHP file of "Quoty" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
A simple plugin for sharing selected text on social networks.

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
No dangerous file extensions were detected11,124 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22,2156,57310,510
PHP11145491315
JSX7340185
CSS37092
JSON10022

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.17
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.22
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 1.23MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png488.12KB222.31KB▼ 54.46%
screenshot-2.png84.67KB34.83KB▼ 58.87%
assets/icon-128x128.png13.04KB6.84KB▼ 47.56%
assets/screenshot-1.png229.36KB111.44KB▼ 51.41%
assets/icon-256x256.png39.35KB21.96KB▼ 44.19%