79% qreuz

Code Review | Qreuz

WordPress plugin Qreuz scored79%from 54 tests.

About plugin

  • Plugin page: qreuz
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: Apr 29, 2020
  • Latest release: Apr 1, 2022
  • Number of updates: 11
  • Update frequency: every 63.8 days
  • Top authors: qreuz (100%)Otto42 (18.18%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /934 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼6.75ms] Passed 4 tests

Server-side resources used by Qreuz
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2539.53 ▼1.64
Dashboard /wp-admin3.55 ▲0.2050.21 ▼11.33
Posts /wp-admin/edit.php3.66 ▲0.3057.87 ▲11.62
Add New Post /wp-admin/post-new.php6.15 ▲0.2688.31 ▼19.95
Media Library /wp-admin/upload.php3.47 ▲0.2440.51 ▲5.92
Website monitoring /wp-admin/admin.php?page=qreuz&subpage=tracking3.4440.53
Get started /wp-admin/admin.php?page=qreuz3.4434.49

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 56 new files
Database: 1 new table, 7 new options
New tables
wp_qreuz_smart_pricing_prices
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
qreuz_db_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for Qreuz
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲20114.07 ▼0.311.56 ▼0.2329.75 ▼14.35
Dashboard /wp-admin2,356 ▲1685.32 ▼0.50116.58 ▲14.2441.19 ▲0.43
Posts /wp-admin/edit.php2,166 ▲772.43 ▲0.4340.64 ▲0.9634.85 ▼3.76
Add New Post /wp-admin/post-new.php1,543 ▲1023.27 ▼0.06677.59 ▲13.9064.04 ▲9.76
Media Library /wp-admin/upload.php1,466 ▲784.64 ▲0.47109.13 ▲7.4945.45 ▲0.36
Website monitoring /wp-admin/admin.php?page=qreuz&subpage=tracking1,1805.27117.9985.64
Get started /wp-admin/admin.php?page=qreuz1,1815.37102.7453.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_qreuz_smart_pricing_prices
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • qreuz_db_version

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

qreuz/qreuz.php 92% from 13 tests

"Qreuz" version 0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 186 characters long)

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
Success! There were no dangerous files found in this plugin1,457 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP195358671,391
JavaScript33154265
CSS24131

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity14.00
▷ Minimum class complexity3.00
▷ Maximum class complexity70.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods71
▷ Static methods2738.03%
▷ Public methods4867.61%
▷ Protected methods00.00%
▷ Private methods2332.39%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin