90% admin-dashboard

Code Review | Admin Dashboard

WordPress plugin Admin Dashboard scored 90% from 54 tests.

About plugin

  • Plugin page: admin-dashboard
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 29, 2019
  • Latest release: Aug 29, 2019
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: libinprasanth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,652 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by Admin Dashboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.79 ▲0.46
Dashboard /wp-admin3.07 ▼0.2325.52 ▼22.90
Posts /wp-admin/edit.php3.42 ▲0.0743.35 ▼4.95
Add New Post /wp-admin/post-new.php6.10 ▲0.2181.25 ▼15.40
Media Library /wp-admin/upload.php3.33 ▲0.1032.24 ▼1.31
Dashboard Menus /wp-admin/admin.php?page=dashboard-dashboard-menus3.4331.73
Social Media /wp-admin/admin.php?page=dashboard-social3.2925.56

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
dashboard_social
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
dashboard_dashboard_menus
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Dashboard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,475 ▼1,26013.02 ▼1.381.57 ▼0.0028.63 ▼11.02
Dashboard /wp-admin871 ▼1,3211.96 ▼3.0134.90 ▼68.1328.08 ▼13.86
Posts /wp-admin/edit.php2,126 ▲372.24 ▲0.1033.69 ▼0.4334.58 ▲1.82
Add New Post /wp-admin/post-new.php6,499 ▲4,95423.51 ▲0.57852.12 ▲215.9634.42 ▼20.54
Media Library /wp-admin/upload.php1,421 ▲364.26 ▲0.1096.38 ▼1.2340.19 ▲1.18
Dashboard Menus /wp-admin/admin.php?page=dashboard-dashboard-menus10,2062.7038.2941.90
Social Media /wp-admin/admin.php?page=dashboard-social9551.9425.0729.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • dashboard_social
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • dashboard_dashboard_menus
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

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)
No browser issues were 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
3 plugin tags: dashboard, admin dashboard, admin

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

The main PHP script in "Admin Dashboard" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("admin-dashboard.php" instead of "dashboard.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin5,161 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
SVG1132,624
CSS510642,117
PHP65254356
JavaScript18264

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin