84% easy-dashboard

Code Review | Easy Dashboard

WordPress plugin Easy Dashboard scored 84% from 54 tests.

About plugin

  • Plugin page: easy-dashboard
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.0
  • WordPress version: 6.3.1
  • First release: Feb 26, 2015
  • Latest release: Feb 17, 2023
  • Number of updates: 20
  • Update frequency: every 145.7 days
  • Top authors: Milmor (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

70+ active / 3,073 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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Easy Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.54 ▼9.19
Dashboard /wp-admin3.21 ▼0.0933.28 ▼14.60
Posts /wp-admin/edit.php3.38 ▲0.0243.84 ▼7.85
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.68 ▼7.40
Media Library /wp-admin/upload.php3.25 ▲0.0237.57 ▲5.73
Impostazioni /wp-admin/admin.php?page=wp-dashboard3.2131.77

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Easy Dashboard
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,491 ▼1,24410.27 ▼4.471.71 ▼0.3137.58 ▼19.46
Dashboard /wp-admin884 ▼1,3042.08 ▼2.8033.45 ▼80.0736.16 ▼9.84
Posts /wp-admin/edit.php2,092 ▲62.01 ▼0.0435.99 ▼1.3837.59 ▲4.29
Add New Post /wp-admin/post-new.php1,667 ▲13322.50 ▼0.63600.46 ▼57.9825.57 ▼39.40
Media Library /wp-admin/upload.php1,391 ▼04.19 ▲0.0095.80 ▼2.2338.55 ▼4.03
Impostazioni /wp-admin/admin.php?page=wp-dashboard8842.0522.3130.16

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
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-dashboard/easy-dashboard.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: dashboard, easy, clean, tiny

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

The principal PHP file in "Easy Dashboard" v. 1.2.2 is loaded by WordPress automatically on each request
72 characters long description:
Refresh your WordPress dashboard with this new elegant, metro-based one.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected135 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1209135

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions6
▷ Named functions6100.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
PNG images were not found in this plugin