84% dashboard-xkcd

Code Review | Dashboard xkcd

WordPress plugin Dashboard xkcd scored84%from 54 tests.

About plugin

  • Plugin page: dashboard-xkcd
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Oct 14, 2015
  • Latest release: Aug 27, 2016
  • Number of updates: 15
  • Update frequency: every 21.2 days
  • Top authors: voldemortensen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /840 total downloads

Benchmarks

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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.05ms] Passed 4 tests

Analyzing server-side resources used by Dashboard xkcd
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.80 ▼0.80
Dashboard /wp-admin3.46 ▲0.1552.03 ▼1.47
Posts /wp-admin/edit.php3.37 ▲0.0148.22 ▼3.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.64 ▼18.86
Media Library /wp-admin/upload.php3.24 ▲0.0139.77 ▲0.25

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dashboard xkcd
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6714.32 ▼0.091.68 ▼0.0140.59 ▼3.83
Dashboard /wp-admin2,222 ▲455.60 ▼0.0986.82 ▼5.7973.00 ▲30.75
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0433.97 ▼4.7332.93 ▼6.77
Add New Post /wp-admin/post-new.php1,535 ▲618.02 ▼5.29649.26 ▼41.5761.35 ▲8.79
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0895.74 ▼9.3142.17 ▼3.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 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/dashboard-xkcd/dashboard-xkcd.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: comics, funny, xkcd

dashboard-xkcd/dashboard-xkcd.php Passed 13 tests

"Dashboard xkcd" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
74 characters long description:
This plugin adds a dashboard widget with the most recent xkcd comic strip.

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
Good job! No executable or dangerous file extensions detected40 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131040

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected