89% easy-quote

Code Review | Easy Quote

WordPress plugin Easy Quote scored89%from 54 tests.

About plugin

  • Plugin page: easy-quote
  • Plugin version: 0.9
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 22, 2018
  • Latest release: Sep 22, 2018
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: azraf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /628 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.17ms] Passed 4 tests

This is a short check of server-side resources used by Easy Quote
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.34 ▲0.22
Dashboard /wp-admin3.32 ▲0.0146.87 ▼0.86
Posts /wp-admin/edit.php3.37 ▲0.0144.40 ▼6.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.90 ▼15.75
Media Library /wp-admin/upload.php3.24 ▲0.0132.88 ▼17.96
EasyQuote /wp-admin/admin.php?page=mws_easyquote_admin3.2731.23
Reorder Model List /wp-admin/admin.php?page=mws_easyquote_list3.2529.07
EasyQuote Options /wp-admin/admin.php?page=mws_easyquote_options3.2530.93

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Easy Quote
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲19514.01 ▼0.397.46 ▲5.7443.22 ▲3.83
Dashboard /wp-admin2,245 ▲594.87 ▼1.07105.65 ▼2.8381.60 ▲36.75
Posts /wp-admin/edit.php2,125 ▲362.06 ▲0.0933.00 ▼8.1035.24 ▼0.62
Add New Post /wp-admin/post-new.php1,545 ▲1017.68 ▼5.72766.54 ▲168.2037.35 ▼20.56
Media Library /wp-admin/upload.php1,427 ▲394.18 ▼0.0695.41 ▼5.1775.85 ▲31.89
EasyQuote /wp-admin/admin.php?page=mws_easyquote_admin9751.7223.8332.45
Reorder Model List /wp-admin/admin.php?page=mws_easyquote_list7531.177.4826.26
EasyQuote Options /wp-admin/admin.php?page=mws_easyquote_options8791.7124.1830.74

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: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Donate link: Invalid URI found ("azraf.me")
You can take inspiration from this readme.txt

easy-quote/mws-easyquote.php 92% from 13 tests

Analyzing the main PHP file in "Easy Quote" version 0.9
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-quote.php" instead of "mws-easyquote.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin8,527 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS25307,273
PHP64634675
SVG100288
JavaScript52690260
Markdown123031

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.09MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/bg.png8.81KB9.01KB0.00%
assets/footer-bg.png75.49KB53.45KB▼ 29.19%
assets/msform_overlay.png0.08KB0.09KB0.00%
assets/msform_sprite.png1.02KB0.98KB▼ 4.11%
images/iPhone.png5.67KB3.17KB▼ 44.17%