84% edd-quaderno

Code Review | EDD Quaderno

WordPress plugin EDD Quaderno scored84%from 54 tests.

About plugin

  • Plugin page: edd-quaderno
  • Plugin version: 1.35.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 3, 2015
  • Latest release: Oct 18, 2023
  • Number of updates: 311
  • Update frequency: every 10.1 days
  • Top authors: polimorfico (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

10+ active /12,385 total downloads

Benchmarks

Plugin footprint 83% from 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.25MB] [CPU: ▼3.93ms] Passed 4 tests

An overview of server-side resources used by EDD Quaderno
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2225.10 ▼12.22
Dashboard /wp-admin3.61 ▲0.3148.32 ▲3.54
Posts /wp-admin/edit.php3.67 ▲0.3052.25 ▲5.12
Add New Post /wp-admin/post-new.php6.13 ▲0.2480.90 ▼8.38
Media Library /wp-admin/upload.php3.47 ▲0.2436.20 ▲1.35

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by EDD Quaderno
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,465 ▼29614.32 ▼0.230.48 ▼1.0116.27 ▼27.42
Dashboard /wp-admin2,206 ▲325.57 ▼0.0180.41 ▼5.0139.22 ▼5.89
Posts /wp-admin/edit.php2,111 ▲291.97 ▼0.0441.23 ▲5.2939.15 ▲3.09
Add New Post /wp-admin/post-new.php1,537 ▲1123.44 ▲0.01584.01 ▼90.4567.84 ▲5.08
Media Library /wp-admin/upload.php1,405 ▲54.20 ▼0.0097.10 ▼2.4746.75 ▲2.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'QuadernoDocument' not found in wp-content/plugins/edd-quaderno/quaderno/quaderno_credit.php:11

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 97% 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
These attributes need to be fixed:
  • Tags: There are too many tags (18 tag instead of maximum 10)
The official readme.txt might help

edd-quaderno/edd-quaderno.php Passed 13 tests

The main PHP script in "EDD Quaderno" version 1.35.1 is automatically included on every request by WordPress
114 characters long description:
Automatically send customizable sales receipts and invoices with every order in your Easy Digital Downloads store.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,516 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP283076281,246
PO File2132257229
JavaScript25141

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity5.08
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes323.08%
▷ Concrete classes1076.92%
▷ Final classes110.00%
Methods44
▷ Static methods49.09%
▷ Public methods3477.27%
▷ Protected methods511.36%
▷ Private methods511.36%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin