78% productdyno

Code Review | ProductDyno

WordPress plugin ProductDyno scored78%from 54 tests.

About plugin

  • Plugin page: productdyno
  • Plugin version: 1.0.22
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.2
  • WordPress version: 6.3.1
  • First release: May 9, 2019
  • Latest release: Nov 7, 2023
  • Number of updates: 57
  • Update frequency: every 28.8 days
  • Top authors: frazahmed (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active /4,161 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.29MB] [CPU: ▼7.80ms] Passed 4 tests

Server-side resources used by ProductDyno
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2542.92 ▼4.30
Dashboard /wp-admin3.58 ▲0.2847.08 ▼7.50
Posts /wp-admin/edit.php3.68 ▲0.3346.12 ▼1.58
Add New Post /wp-admin/post-new.php6.30 ▲0.4177.23 ▼17.83
Media Library /wp-admin/upload.php3.52 ▲0.3034.44 ▲0.56

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for ProductDyno
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲12613.80 ▼0.938.69 ▲6.9944.41 ▲0.72
Dashboard /wp-admin2,213 ▲335.66 ▼0.0195.71 ▼3.0984.02 ▲41.74
Posts /wp-admin/edit.php2,115 ▲151.97 ▲0.0236.35 ▼3.9634.67 ▼0.08
Add New Post /wp-admin/post-new.php6,235 ▲4,70925.88 ▲2.671,024.15 ▲350.8268.68 ▲12.80
Media Library /wp-admin/upload.php1,415 ▲184.14 ▼0.0397.44 ▼6.8671.54 ▲26.38

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/productdyno/public/partials/productdyno-public-display.php
    • > /wp-content/plugins/productdyno/public/partials/productdyno-public-restricted-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/productdyno/admin/partials/productdyno-admin-display.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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:
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

productdyno/productdyno.php Passed 13 tests

The entry point to "ProductDyno" version 1.0.22 is a PHP file that has certain tags in its header comment area
89 characters long description:
Discover the easiest way to Sell, License & Securely Deliver any type of Digital Product!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,541 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP134519441,194
CSS24016239
JavaScript25292108

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.29
▷ Minimum class complexity1.00
▷ Maximum class complexity101.00
Average method complexity3.84
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods50
▷ Static methods24.00%
▷ Public methods3264.00%
▷ Protected methods00.00%
▷ Private methods1836.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/favicon.png1.48KB0.73KB▼ 50.49%
admin/images/logo.png8.65KB4.32KB▼ 50.09%