84% rd-dashboard-pdf

Code Review | RD Dashboard pdf

WordPress plugin RD Dashboard pdf scored84%from 54 tests.

About plugin

  • Plugin page: rd-dashboard-pdf
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 3, 2017
  • Latest release: Aug 18, 2023
  • Number of updates: 58
  • Update frequency: every 38.0 days
  • Top authors: yat8823jp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,313 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.03MB] [CPU: ▼12.04ms] Passed 4 tests

This is a short check of server-side resources used by RD Dashboard pdf
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.09 ▼7.77
Dashboard /wp-admin3.34 ▼0.0046.76 ▼14.43
Posts /wp-admin/edit.php3.39 ▲0.0445.60 ▼2.05
Add New Post /wp-admin/post-new.php5.92 ▲0.0477.82 ▼23.89
Media Library /wp-admin/upload.php3.27 ▲0.0433.67 ▲1.97
rd-dashboard-pdf /wp-admin/options-general.php?page=rddp3.2330.40

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for RD Dashboard pdf
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.48 ▲0.171.66 ▼0.0440.64 ▲0.88
Dashboard /wp-admin2,214 ▲235.85 ▼0.05108.63 ▲6.4538.93 ▼3.78
Posts /wp-admin/edit.php2,097 ▲82.01 ▼0.0542.09 ▲7.0535.27 ▲4.71
Add New Post /wp-admin/post-new.php1,531 ▲1718.26 ▲0.85611.28 ▼50.0059.99 ▲9.07
Media Library /wp-admin/upload.php1,396 ▲144.24 ▼0.0294.01 ▼3.2240.62 ▼2.08
rd-dashboard-pdf /wp-admin/options-general.php?page=rddp8422.0525.8027.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rd-dashboard-pdf/main.php:50

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: pdf, dashboard, manual

rd-dashboard-pdf/main.php 92% from 13 tests

The entry point to "RD Dashboard pdf" version 3.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("rd-dashboard-pdf.php" instead of "main.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 plugin274 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12141220
JavaScript14634
CSS14020

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.25
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin