74% quality-driven

Code Review | Quality Driven

WordPress plugin Quality Driven scored74%from 54 tests.

About plugin

  • Plugin page: quality-driven
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 21, 2018
  • Latest release: Jan 30, 2019
  • Number of updates: 19
  • Update frequency: every 12.9 days
  • Top authors: qualitydriven (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,200 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼1.96MB] [CPU: ▼54.18ms] Passed 4 tests

An overview of server-side resources used by Quality Driven
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.08 ▼37.52
Dashboard /wp-admin2.05 ▼1.265.14 ▼43.30
Posts /wp-admin/edit.php2.05 ▼1.314.72 ▼44.55
Add New Post /wp-admin/post-new.php2.05 ▼3.846.07 ▼91.34
Media Library /wp-admin/upload.php2.05 ▼1.185.18 ▼29.91

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Quality Driven
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.62 ▼0.691.54 ▼0.2642.20 ▼0.63
Dashboard /wp-admin2,224 ▲425.85 ▼0.03122.95 ▼0.5139.74 ▲0.48
Posts /wp-admin/edit.php2,107 ▲182.05 ▲0.0139.70 ▼1.8751.47 ▼8.12
Add New Post /wp-admin/post-new.php1,548 ▲623.42 ▲5.23728.97 ▲133.1058.69 ▲11.98
Media Library /wp-admin/upload.php1,400 ▲154.32 ▲0.0998.43 ▼0.5941.70 ▲0.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the style.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/quality-driven/qds-wp-settings-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/quality-driven/qds-wp.php:14

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Example reviews embeded in a page), #2 (QDS API key setup screen), #3 (Help screen), #4 (Examples screen)
You can look at the official readme.txt

quality-driven/qds-wp.php 92% from 13 tests

The primary PHP file in "Quality Driven" version 1.2.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quality-driven.php" instead of "qds-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin309 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23718203
CSS1180106

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 compressed PNG files occupy 0.17MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png27.44KB28.72KB0.00%
logo.png17.07KB6.79KB▼ 60.21%
review1.png6.75KB6.90KB0.00%
screenshot-2.png18.41KB18.98KB0.00%
review2.png6.82KB7.03KB0.00%