89% disable-events-and-news-dashboard-widget

Code Review | Disable WordPress Events and News Dashboard Widget

WordPress plugin Disable WordPress Events and News Dashboard Widget scored89%from 54 tests.

About plugin

  • Plugin page: disable-events-an...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.1
  • WordPress version: 6.3.1
  • First release: May 29, 2017
  • Latest release: Feb 25, 2019
  • Number of updates: 7
  • Update frequency: every 91.0 days
  • Top authors: dimadin (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /6,319 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.00MB] [CPU: ▼7.12ms] Passed 4 tests

Server-side resources used by Disable WordPress Events and News Dashboard Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.72 ▼0.22
Dashboard /wp-admin3.31 ▼0.0343.38 ▼15.25
Posts /wp-admin/edit.php3.36 ▲0.0151.44 ▲4.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.36 ▼13.89
Media Library /wp-admin/upload.php3.24 ▲0.0136.07 ▲0.89

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable WordPress Events and News Dashboard Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,637 ▼12414.06 ▼0.181.71 ▲0.1646.66 ▲5.99
Dashboard /wp-admin2,043 ▼1385.52 ▼0.1585.97 ▼12.5833.68 ▼12.39
Posts /wp-admin/edit.php2,100 ▲211.99 ▼0.0040.33 ▲3.8738.38 ▲3.88
Add New Post /wp-admin/post-new.php1,526 ▼323.48 ▲0.40679.86 ▲37.5351.57 ▼3.81
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.0393.51 ▼5.3643.49 ▼1.74

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: dashboard, dashboard widget

disable-events-and-news-dashboard-widget/disable-wordpress-events-and-news-dashboard-widget.php 77% from 13 tests

Analyzing the main PHP file in "Disable WordPress Events and News Dashboard Widget" version 1.0
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("disable-events-and-news-dashboard-widget.php" instead of "disable-wordpress-events-and-news-dashboard-widget.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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
There were no executable files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14258

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin