84% dashboard-notepad

Code Review | Dashboard Notepad

WordPress plugin Dashboard Notepad scored84%from 54 tests.

About plugin

  • Plugin page: dashboard-notepad
  • Plugin version: 1.42
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.1
  • WordPress version: 6.3.1
  • First release: Aug 6, 2009
  • Latest release: Jul 30, 2017
  • Number of updates: 52
  • Update frequency: every 56.1 days
  • Top authors: sillybean (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

10,000+ active /88,602 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.42ms] Passed 4 tests

Analyzing server-side resources used by Dashboard Notepad
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.59 ▼3.65
Dashboard /wp-admin3.36 ▲0.0151.70 ▼8.27
Posts /wp-admin/edit.php3.40 ▲0.0549.75 ▼2.57
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.78 ▼11.18
Media Library /wp-admin/upload.php3.27 ▲0.0537.61 ▲1.25

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Dashboard Notepad: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8814.27 ▼0.081.83 ▼0.0044.03 ▼4.40
Dashboard /wp-admin2,240 ▲635.56 ▼0.0892.26 ▲6.5040.75 ▼0.24
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0035.12 ▼0.4833.36 ▼2.72
Add New Post /wp-admin/post-new.php1,534 ▼118.14 ▲0.13619.93 ▼47.2369.35 ▼5.23
Media Library /wp-admin/upload.php1,400 ▼04.28 ▲0.1295.54 ▼10.2137.66 ▼12.13

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
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-notepad/dashboard-notepad.php:66

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention: The official readme.txt is a good inspiration

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

The principal PHP file in "Dashboard Notepad" v. 1.42 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 297 characters long)

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
Everything looks great! No dangerous files found in this plugin546 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File8132173385
PHP11926161

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin