83% quotetour

Code Review | Quotes and Sayings | QuoteTour

WordPress plugin Quotes and Sayings | QuoteTour scored 83% from 54 tests.

About plugin

  • Plugin page: quotetour
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Apr 14, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: quotetour (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 2,123 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.71ms] Passed 4 tests

This is a short check of server-side resources used by Quotes and Sayings | QuoteTour
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0431.92 ▼6.20
Dashboard /wp-admin3.34 ▲0.0448.22 ▲2.91
Posts /wp-admin/edit.php3.39 ▲0.0350.14 ▲1.42
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.24 ▼15.03
Media Library /wp-admin/upload.php3.26 ▲0.0334.44 ▲0.96

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_foo_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quotes and Sayings | QuoteTour
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.134.03 ▲2.1838.66 ▼9.16
Dashboard /wp-admin2,209 ▲184.80 ▼1.1099.05 ▼0.9940.09 ▼3.30
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0739.02 ▼2.4433.94 ▼1.34
Add New Post /wp-admin/post-new.php1,534 ▲423.20 ▲4.81643.50 ▲38.0050.76 ▲2.17
Media Library /wp-admin/upload.php1,388 ▲64.18 ▼0.0392.80 ▼7.3043.29 ▲0.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_foo_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/quotetour/quotetour-widget.php:14

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 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 26 tag instead of maximum 10
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in quotetour/assets to your readme.txt
Please take inspiration from this readme.txt

quotetour/quotetour-widget.php 85% from 13 tests

This is the main PHP file of "Quotes and Sayings | QuoteTour" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 286 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("quotetour.php" instead of "quotetour-widget.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
There were no executable files found in this plugin140 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11340140

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity9.25
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected