84% daisycon-transactions-dashboard-widget

Code Review | Daisycon Transactions (dashboard widget)

WordPress plugin Daisycon Transactions (dashboard widget) scored84%from 54 tests.

About plugin

  • Plugin page: daisycon-transact...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Mar 1, 2015
  • Latest release: Dec 8, 2015
  • Number of updates: 19
  • Update frequency: every 14.8 days
  • Top authors: j.zonneveld (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,237 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.40ms] Passed 4 tests

A check of server-side resources used by Daisycon Transactions (dashboard widget)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0337.23 ▼5.25
Dashboard /wp-admin3.33 ▲0.0347.91 ▼2.31
Posts /wp-admin/edit.php3.38 ▲0.0348.26 ▲2.60
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.09 ▼4.64
Media Library /wp-admin/upload.php3.25 ▲0.0338.15 ▲3.38

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Daisycon Transactions (dashboard widget)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲11313.22 ▼1.211.57 ▼0.1841.99 ▼7.50
Dashboard /wp-admin2,257 ▲725.84 ▲0.98102.74 ▼12.1062.69 ▲22.28
Posts /wp-admin/edit.php2,104 ▲152.00 ▼0.0138.24 ▼2.1840.49 ▲7.78
Add New Post /wp-admin/post-new.php1,527 ▼623.53 ▲0.44675.35 ▼6.8261.42 ▲4.27
Media Library /wp-admin/upload.php1,406 ▲214.23 ▲0.05104.85 ▼9.2165.28 ▲16.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/daisycon-transactions-dashboard-widget/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 93% 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
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === daisycon-transactions-dashboard-widget === )
You can take inspiration from this readme.txt

daisycon-transactions-dashboard-widget/index.php 92% from 13 tests

The main PHP script in "Daisycon Transactions (dashboard widget)" version 1.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("daisycon-transactions-dashboard-widget.php" instead of "index.php")

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 detected134 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ 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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/disapproved.png14.93KB0.67KB▼ 95.50%
images/approved.png14.83KB0.51KB▼ 96.56%
images/open.png0.91KB0.81KB▼ 11.08%
images/daisycon-icon.png1.58KB0.66KB▼ 58.18%