84% download-monitor-page-addon-qr-code

Code Review | Download Monitor Page Addon QR Code

WordPress plugin Download Monitor Page Addon QR Code scored84%from 54 tests.

About plugin

  • Plugin page: download-monitor-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 6.3.1
  • First release: Jan 6, 2014
  • Latest release: Jan 6, 2014
  • Number of updates: 6
  • Update frequency: every 6.0 days
  • Top authors: tripflex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,122 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.34ms] Passed 4 tests

Server-side resources used by Download Monitor Page Addon QR Code
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.71 ▼2.46
Dashboard /wp-admin3.31 ▼0.0345.60 ▼14.94
Posts /wp-admin/edit.php3.36 ▲0.0143.90 ▼6.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.23 ▼5.09
Media Library /wp-admin/upload.php3.23 ▲0.0136.03 ▲2.26

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Download Monitor Page Addon QR Code
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.18 ▼0.161.81 ▲0.2443.85 ▲1.92
Dashboard /wp-admin2,198 ▲215.66 ▲0.0487.22 ▲1.7936.82 ▼2.83
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.1441.09 ▲2.8035.57 ▲3.55
Add New Post /wp-admin/post-new.php1,526 ▼222.89 ▲0.04613.02 ▼58.1444.07 ▼29.78
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.0495.52 ▼12.8441.41 ▼3.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% 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 everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/download-monitor-page-addon-qr-code/download-monitor-page-addon-qr.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: download, qr code, downloads, download monitor, qr...

download-monitor-page-addon-qr-code/download-monitor-page-addon-qr.php 92% from 13 tests

The main PHP file in "Download Monitor Page Addon QR Code" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("download-monitor-page-addon-qr-code.php" instead of "download-monitor-page-addon-qr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected216 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS112169
Markdown115023
PHP131123
JavaScript1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin