80% easy-quotes

Code Review | Easy Quotes

WordPress plugin Easy Quotes scored80%from 54 tests.

About plugin

  • Plugin page: easy-quotes
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.4
  • WordPress version: 6.3.1
  • First release: Oct 5, 2021
  • Latest release: Oct 27, 2023
  • Number of updates: 31
  • Update frequency: every 24.3 days
  • Top authors: juergen74 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,884 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.19ms] Passed 4 tests

Analyzing server-side resources used by Easy Quotes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1135.58 ▼4.10
Dashboard /wp-admin3.39 ▲0.0447.08 ▼12.86
Posts /wp-admin/edit.php3.44 ▲0.0846.09 ▲2.09
Add New Post /wp-admin/post-new.php6.08 ▲0.2082.76 ▼9.12
Media Library /wp-admin/upload.php3.31 ▲0.0834.12 ▲1.34
Add New /wp-admin/post-new.php?post_type=quote3.4453.28
All Quotes /wp-admin/edit.php?post_type=quote3.4140.88
Categories /wp-admin/edit-tags.php?taxonomy=quote-category&post_type=quote3.3934.86

Server storage [IO: ▲0.92MB] [DB: ▲0.34MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: 6 new tables, 7 new options
New tables
wp_easy-quotes-variants
wp_easy-quotes-files
wp_easy-quotes-family-subsets
wp_easy-quotes-categories
wp_easy-quotes-families
wp_easy-quotes-subsets
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
easy-quotes-db-version

Browser metrics Passed 4 tests

Checking browser requirements for Easy Quotes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,990 ▲22913.48 ▼0.879.92 ▲8.2141.44 ▲0.54
Dashboard /wp-admin2,226 ▲525.63 ▲0.0587.00 ▼3.7338.94 ▼2.24
Posts /wp-admin/edit.php2,131 ▲311.98 ▼0.0433.94 ▼1.2335.18 ▼3.14
Add New Post /wp-admin/post-new.php1,761 ▲23521.93 ▼1.09625.36 ▼59.6029.46 ▼31.51
Media Library /wp-admin/upload.php1,428 ▲284.19 ▲0.0494.88 ▼15.1844.57 ▼2.24
Add New /wp-admin/post-new.php?post_type=quote2,4127.81197.1368.34
All Quotes /wp-admin/edit.php?post_type=quote1,9482.0635.7131.74
Categories /wp-admin/edit-tags.php?taxonomy=quote-category&post_type=quote1,3052.1226.3929.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 tables in the database
    • wp_easy-quotes-families
    • wp_easy-quotes-files
    • wp_easy-quotes-family-subsets
    • wp_easy-quotes-variants
    • wp_easy-quotes-categories
    • wp_easy-quotes-subsets
  • This plugin does not fully uninstall, leaving 7 options in the database
    • easy-quotes-db-version
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: random, daily, quote, testimonials, rating...

easy-quotes/easy-quotes.php 92% from 13 tests

"Easy Quotes" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)

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
Everything looks great! No dangerous files found in this plugin24,128 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JSON40022,236
PHP102545541,419
PO File198102226
JavaScript52942224
CSS36523

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity23.50
▷ Minimum class complexity4.00
▷ Maximum class complexity53.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods98
▷ Static methods1818.37%
▷ Public methods7677.55%
▷ Protected methods00.00%
▷ Private methods2222.45%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin