84% inspiring-dashboards

Code Review | Inspiring Dashboards

WordPress plugin Inspiring Dashboards scored84%from 54 tests.

About plugin

  • Plugin page: inspiring-dashboards
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Jan 25, 2014
  • Latest release: Sep 4, 2014
  • Number of updates: 11
  • Update frequency: every 20.3 days
  • Top authors: cklosows (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,365 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Inspiring Dashboards
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.60 ▼2.39
Dashboard /wp-admin3.32 ▲0.0146.79 ▼9.91
Posts /wp-admin/edit.php3.37 ▲0.0150.68 ▼0.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.23 ▼3.13
Media Library /wp-admin/upload.php3.24 ▲0.0138.37 ▼0.20

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Inspiring Dashboards
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14114.42 ▲0.061.79 ▲0.0440.15 ▼4.16
Dashboard /wp-admin2,283 ▲1035.64 ▼0.0293.60 ▼6.2544.43 ▼0.61
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0339.77 ▲3.0734.63 ▼2.25
Add New Post /wp-admin/post-new.php1,535 ▲918.17 ▼5.61604.92 ▼109.0865.87 ▲13.40
Media Library /wp-admin/upload.php1,394 ▼04.21 ▲0.0299.29 ▼6.4540.65 ▼7.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
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/inspiring-dashboards/inspiring-dashboards.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
4 plugin tags: blogging, inspiration, writing prompts, writing

inspiring-dashboards/inspiring-dashboards.php Passed 13 tests

The main file in "Inspiring Dashboards" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
98 characters long description:
Not sure what to write about for your next blog post? Maybe this Dashboard Widget can inspire you.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected88 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File1121245
PHP141043

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
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%
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
There were not PNG files found in your plugin