84% custom-waimao-welcome-dashboard

Code Review | Custom Waimao Welcome Dashboard

WordPress plugin Custom Waimao Welcome Dashboard scored84%from 54 tests.

About plugin

  • Plugin page: custom-waimao-wel...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.7
  • WordPress version: 6.3.1
  • First release: Jul 16, 2021
  • Latest release: Jul 16, 2021
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: qq2466380523 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /752 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.56ms] Passed 4 tests

Analyzing server-side resources used by Custom Waimao Welcome Dashboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.59 ▼4.84
Dashboard /wp-admin3.35 ▲0.0458.50 ▲6.78
Posts /wp-admin/edit.php3.39 ▲0.0351.75 ▼0.35
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.09 ▼7.77
Media Library /wp-admin/upload.php3.26 ▲0.0335.56 ▼1.27

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Custom Waimao Welcome Dashboard
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,611 ▲86513.55 ▼0.835.28 ▲2.8637.44 ▼3.03
Dashboard /wp-admin3,020 ▲8295.88 ▲0.99113.74 ▲4.2794.05 ▲50.98
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0141.52 ▲1.1535.91 ▼0.21
Add New Post /wp-admin/post-new.php1,533 ▲1923.07 ▲5.36703.82 ▲25.1368.67 ▲22.61
Media Library /wp-admin/upload.php1,388 ▲34.26 ▼0.02106.98 ▲4.0545.77 ▲2.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/custom-waimao-welcome-dashboard/dash.php:15

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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: welcome, dashboard

custom-waimao-welcome-dashboard/dash.php 92% from 13 tests

The main PHP script in "Custom Waimao Welcome Dashboard" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("custom-waimao-welcome-dashboard.php" instead of "dash.php")

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
Everything looks great! No dangerous files found in this plugin426 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP112119322
CSS1266103
SVG1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected