88% quotes-and-testimonials

Code Review | Quotes & Testimonials

WordPress plugin Quotes & Testimonials scored 88% from 54 tests.

About plugin

  • Plugin page: quotes-and-testim...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.5.2
  • WordPress version: 5.8.1
  • First release: May 18, 2016
  • Latest release: May 18, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: davidlakin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 590 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼147.40ms] Passed 4 tests

Server-side resources used by Quotes & Testimonials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1932.88 ▲12.11
Dashboard /wp-admin3.13 ▲0.0847.83 ▼1.13
Posts /wp-admin/edit.php3.18 ▲0.0847.11 ▲0.19
Add New Post /wp-admin/post-new.php5.49 ▲0.0692.95 ▼590.49
Media Library /wp-admin/upload.php3.07 ▲0.0735.82 ▲1.82
Quotes & Testimonials /wp-admin/edit.php?post_type=quote3.1540.57
Reorder Quotes /wp-admin/edit.php?post_type=quote&page=reorder_quotes3.0834.94
Help /wp-admin/edit.php?post_type=quote&page=quotes_help3.0833.40
Add New /wp-admin/post-new.php?post_type=quote3.1748.79

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Quotes & Testimonials: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,754 ▲15816.03 ▲0.0810.13 ▼1.7147.90 ▲0.39
Dashboard /wp-admin3,015 ▲815.95 ▲0.02142.90 ▼19.06107.57 ▼2.51
Posts /wp-admin/edit.php2,784 ▲452.72 ▼0.0088.31 ▲24.5985.92 ▼5.82
Add New Post /wp-admin/post-new.php1,712 ▼1,97718.75 ▲3.44383.89 ▼109.14104.14 ▼8.79
Media Library /wp-admin/upload.php1,855 ▲485.06 ▲0.04162.37 ▼47.54124.29 ▼2.23
Quotes & Testimonials /wp-admin/edit.php?post_type=quote1,6984.1993.8773.44
Reorder Quotes /wp-admin/edit.php?post_type=quote&page=reorder_quotes1,3353.3271.2692.82
Help /wp-admin/edit.php?post_type=quote&page=quotes_help1,3673.3370.5989.46
Add New /wp-admin/post-new.php?post_type=quote2,8548.57196.02126.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quotes-and-testimonials/qt-settings.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quotes-and-testimonials/qt-cpt.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/quotes-and-testimonials/qt-fields.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/quotes-and-testimonials/qt-shortcode.php:27

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=quote
    • > Network (severe)
    wp-content/plugins/quotes-and-testimonials/css/admin-quotes.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=quote
    • > Network (severe)
    wp-content/plugins/quotes-and-testimonials/js/meta-box-image.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=quote&page=quotes_help
    • > Network (severe)
    wp-content/plugins/quotes-and-testimonials/js/reorder.js?ver=20160502 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
2 plugin tags: quotes, testimonials

quotes-and-testimonials/quotes.php 85% from 13 tests

The main PHP script in "Quotes & Testimonials" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quotes-and-testimonials.php" instead of "quotes.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin356 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP55136356

PHP code Passed 2 tests

This is a short overview 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.23
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%
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
No PNG files were detected