79% isibia-dashboard-messages

Code Review | Isibia Dashboard Messages

WordPress plugin Isibia Dashboard Messages scored79%from 54 tests.

About plugin

  • Plugin page: isibia-dashboard-...
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1
  • WordPress version: 6.3.1
  • First release: Jan 7, 2023
  • Latest release: Jan 14, 2023
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: isibia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /123 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼0.85ms] Passed 4 tests

Analyzing server-side resources used by Isibia Dashboard Messages
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1249.61 ▲7.25
Dashboard /wp-admin3.46 ▲0.1649.23 ▼3.30
Posts /wp-admin/edit.php3.57 ▲0.2152.70 ▲3.79
Add New Post /wp-admin/post-new.php6.06 ▲0.1784.47 ▼8.36
Media Library /wp-admin/upload.php3.40 ▲0.1738.94 ▲4.47
Dashboard Messages /wp-admin/edit.php?post_type=isibia_dashmess3.4342.00
Add new message /wp-admin/post-new.php?post_type=isibia_dashmess3.3134.82

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Isibia Dashboard Messages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲14115.37 ▲1.001.97 ▲0.2544.76 ▲0.94
Dashboard /wp-admin2,273 ▲856.69 ▲1.73124.58 ▲13.3441.36 ▼1.44
Posts /wp-admin/edit.php2,310 ▲2213.41 ▲1.3754.51 ▲17.1949.88 ▲16.93
Add New Post /wp-admin/post-new.php1,565 ▲5118.24 ▲0.65613.07 ▼69.7835.64 ▼29.51
Media Library /wp-admin/upload.php1,608 ▲2205.08 ▲0.85109.46 ▲11.2542.81 ▲0.23
Dashboard Messages /wp-admin/edit.php?post_type=isibia_dashmess1,2823.2352.5046.38
Add new message /wp-admin/post-new.php?post_type=isibia_dashmess2,2977.82175.2775.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=isibia_dashmess
    • > Notice in wp-content/plugins/isibia-dashboard-messages/src/admin/models/classes/DashboardMessagePost.php+46
    Undefined index: isibia-dashmess-nonce

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function IsibiaDashboardMessages\\Core\\add_action() in wp-content/plugins/isibia-dashboard-messages/src/Plugin.php:16

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: messages

isibia-dashboard-messages/isibia-dashboard-messages.php Passed 13 tests

"Isibia Dashboard Messages" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Free Isibia plugin. Create messages for control panel users.

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
Good job! No executable or dangerous file extensions detected1,238 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP262174161,102
CSS21568
JavaScript19663
JSON1005

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity7.25
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods64
▷ Static methods3351.56%
▷ Public methods6195.31%
▷ Protected methods00.00%
▷ Private methods34.69%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/css/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
src/css/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
src/css/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
src/css/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
src/css/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%