72% puddinq-dashboard

Code Review | Puddinq Dashboard

WordPress plugin Puddinq Dashboard scored 72% from 54 tests.

About plugin

  • Plugin page: puddinq-dashboard
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Jan 1, 2017
  • Latest release: Apr 23, 2020
  • Number of updates: 24
  • Update frequency: every 50.3 days
  • Top authors: wonder32 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 963 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.62ms] Passed 4 tests

This is a short check of server-side resources used by Puddinq Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.49 ▼9.62
Dashboard /wp-admin3.42 ▲0.1246.09 ▼4.23
Posts /wp-admin/edit.php3.53 ▲0.1847.66 ▼0.88
Add New Post /wp-admin/post-new.php6.00 ▲0.1185.19 ▼7.74
Media Library /wp-admin/upload.php3.34 ▲0.1137.99 ▲3.78
Puddinq Dashboard /wp-admin/options-general.php?page=puddinq-dashboard3.1527.82

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
puddinq_dashboard_widg_array
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Puddinq Dashboard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.16 ▼1.584.34 ▲2.4540.43 ▼9.57
Dashboard /wp-admin2,210 ▲255.85 ▼0.03100.82 ▼15.5240.40 ▼4.64
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0437.11 ▼0.4631.34 ▼1.73
Add New Post /wp-admin/post-new.php1,536 ▲2223.30 ▲5.65673.02 ▼8.0757.21 ▲3.17
Media Library /wp-admin/upload.php1,389 ▲44.21 ▼0.0496.11 ▼13.6941.86 ▼4.97
Puddinq Dashboard /wp-admin/options-general.php?page=puddinq-dashboard1,6043.8573.0665.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=puddinq-dashboard
    • > Notice in wp-content/plugins/puddinq-dashboard/includes/init.php+88
    Trying to access array offset on value of type bool

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/puddinq-dashboard/includes/init.php
  • 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/puddinq-dashboard/widgets/dashboard_picture.php:18

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: admin, colors, puddinq, dashboard, widget

puddinq-dashboard/puddinq-dashboard.php 92% from 13 tests

The primary PHP file in "Puddinq Dashboard" version 0.1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin767 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6242226548
JavaScript1251486
PO File1415185
CSS115248

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/smile.png14.94KB0.70KB▼ 95.29%