84% dashboard-for-beginer

Code Review | Dashboard for Beginner

WordPress plugin Dashboard for Beginner scored84%from 54 tests.

About plugin

  • Plugin page: dashboard-for-beg...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Aug 4, 2014
  • Latest release: Aug 27, 2014
  • Number of updates: 12
  • Update frequency: every 2.4 days
  • Top authors: aiooxx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,017 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼9.50ms] Passed 4 tests

An overview of server-side resources used by Dashboard for Beginner
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.47 ▲1.65
Dashboard /wp-admin3.23 ▼0.1138.37 ▼19.95
Posts /wp-admin/edit.php3.36 ▲0.0145.16 ▼5.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.32 ▼10.68
Media Library /wp-admin/upload.php3.23 ▲0.0131.03 ▼1.99

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Dashboard for Beginner
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,055 ▼69113.87 ▼0.511.65 ▲0.0239.24 ▼2.61
Dashboard /wp-admin1,469 ▼7225.24 ▼0.7377.44 ▼25.9448.70 ▲9.66
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0435.34 ▼3.7531.16 ▼5.79
Add New Post /wp-admin/post-new.php1,521 ▼723.54 ▲5.09671.97 ▲63.2652.75 ▼2.68
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0099.46 ▼4.2742.34 ▲0.61

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dashboard-for-beginer/dashboard.php:22

User-side errors Passed 1 test

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

Optimizations

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: Please replace "Plugin Name" with the name of your plugin on the first line ( === dashboard-for-beginer === )
Please take inspiration from this readme.txt

dashboard-for-beginer/dashboard.php 92% from 13 tests

"Dashboard for Beginner" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dashboard-for-beginer.php" instead of "dashboard.php")

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
No dangerous file extensions were detected21 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161321

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin