78% quotes-everywhere

Code Review | Quotes Everywhere!

WordPress plugin Quotes Everywhere! scored78%from 54 tests.

About plugin

  • Plugin page: quotes-everywhere
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 6.3.1
  • First release: Aug 26, 2013
  • Latest release: Aug 27, 2013
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: krommesammie (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /806 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Quotes Everywhere!
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.86 ▼1.71
Dashboard /wp-admin3.32 ▲0.0148.60 ▼4.78
Posts /wp-admin/edit.php3.37 ▲0.0147.81 ▼1.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.83 ▼22.87
Media Library /wp-admin/upload.php3.24 ▲0.0137.97 ▲0.37
Quotes Everywhere! /wp-admin/options-general.php?page=quoteseverywhere_display_main3.2232.00

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Quotes Everywhere!
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.15 ▼1.271.64 ▼0.3843.11 ▲0.30
Dashboard /wp-admin2,207 ▲165.83 ▲0.05103.09 ▼6.1339.65 ▼2.06
Posts /wp-admin/edit.php2,093 ▲12.02 ▼0.0034.69 ▼2.3233.13 ▼3.12
Add New Post /wp-admin/post-new.php1,536 ▲323.26 ▼0.07686.18 ▲29.9155.23 ▼7.74
Media Library /wp-admin/upload.php1,395 ▲74.15 ▲0.0295.81 ▼14.7646.85 ▼0.36
Quotes Everywhere! /wp-admin/options-general.php?page=quoteseverywhere_display_main8642.0224.4434.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=quoteseverywhere_display_main
    • > Notice in wp-content/plugins/quotes-everywhere/quoteseverywhere_admin.php+2
    Undefined index: quotinhead_hidden

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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined index: quotinhead_hidden in wp-content/plugins/quotes-everywhere/quoteseverywhere_admin.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/quotes-everywhere/quoteseverywhere_admin.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quotes-everywhere/quoteseverywhere_plugin.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: quotes, inspirational quotes

quotes-everywhere/quoteseverywhere_plugin.php 85% from 13 tests

The main PHP script in "Quotes Everywhere!" version 1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("quotes-everywhere.php" instead of "quoteseverywhere_plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin99 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2372099

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin