84% noticeboard-wp

Code Review | WP Noticeboard - WordPress Notice Board

WordPress plugin WP Noticeboard - WordPress Notice Board scored 84% from 54 tests.

About plugin

  • Plugin page: noticeboard-wp
  • Plugin version: 0.1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 27, 2021
  • Latest release: Mar 8, 2023
  • Number of updates: 9
  • Update frequency: every 75.6 days
  • Top authors: astranix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 3,378 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.06ms] Passed 4 tests

An overview of server-side resources used by WP Noticeboard - WordPress Notice Board
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.94 ▼6.47
Dashboard /wp-admin3.37 ▲0.0746.15 ▼0.49
Posts /wp-admin/edit.php3.42 ▲0.0749.93 ▲2.66
Add New Post /wp-admin/post-new.php6.04 ▲0.1687.22 ▼15.93
Media Library /wp-admin/upload.php3.29 ▲0.0636.31 ▲3.86
Categories /wp-admin/edit-tags.php?taxonomy=wp_notice_category&post_type=notice3.2831.74
New Notice /wp-admin/post-new.php?post_type=notice6.0485.71
Notice Board /wp-admin/edit.php?post_type=notice3.3437.26

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_wp_noticeboard_widget
widget_recent-comments

Browser metrics Passed 4 tests

WP Noticeboard - WordPress Notice Board: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲12413.31 ▼1.061.88 ▲0.1439.16 ▼5.76
Dashboard /wp-admin2,240 ▲494.89 ▼0.21105.27 ▲1.7836.79 ▼6.45
Posts /wp-admin/edit.php2,123 ▲342.02 ▼0.0940.78 ▼3.5336.55 ▼0.73
Add New Post /wp-admin/post-new.php1,559 ▲1823.48 ▲0.33662.81 ▲20.6353.08 ▼10.11
Media Library /wp-admin/upload.php1,419 ▲314.20 ▼0.0092.67 ▼6.7442.78 ▲2.22
Categories /wp-admin/edit-tags.php?taxonomy=wp_notice_category&post_type=notice1,2902.1427.1028.01
New Notice /wp-admin/post-new.php?post_type=notice6,53824.84892.9830.06
Notice Board /wp-admin/edit.php?post_type=notice1,1351.9332.0231.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_wp_noticeboard_widget
    • widget_theysaidso_widget

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)
Even though everything seems fine, this is not 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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/noticeboard-wp/wp-noticeboard-widget.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/noticeboard-wp/wp-noticeboard-widget.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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
4 plugin tags: board, notice board, notice, noticeboard

noticeboard-wp/wp-noticeboard.php 92% from 13 tests

This is the main PHP file of "WP Noticeboard - WordPress Notice Board" version 0.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("noticeboard-wp.php" instead of "wp-noticeboard.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin143 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23421143

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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 are no PNG files in this plugin