78% institute-notice

Code Review | Institute Notice

WordPress plugin Institute Notice scored78%from 54 tests.

About plugin

  • Plugin page: institute-notice
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1.28+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.3-6.0
  • WordPress version: 6.3.1
  • First release: Nov 14, 2020
  • Latest release: Jun 7, 2022
  • Number of updates: 4
  • Update frequency: every 142.7 days
  • Top authors: mddalwar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.64MB] [CPU: ▼14.89ms] Passed 4 tests

This is a short check of server-side resources used by Institute Notice
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.61 ▼1.18
Dashboard /wp-admin3.37 ▲0.0757.71 ▲7.89
Posts /wp-admin/edit.php3.49 ▲0.1454.25 ▲4.76
Add New Post /wp-admin/post-new.php3.14 ▼2.7535.92 ▼66.97
Media Library /wp-admin/upload.php3.28 ▲0.0539.88 ▲3.83
All Notices /wp-admin/edit.php?post_type=institute_notice3.3541.75
Add New /wp-admin/post-new.php?post_type=institute_notice3.1433.84

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Institute Notice
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲22515.01 ▲0.811.81 ▲0.1045.29 ▲3.42
Dashboard /wp-admin2,372 ▲1846.43 ▲1.51124.27 ▲18.2638.28 ▼8.68
Posts /wp-admin/edit.php2,284 ▲1953.44 ▲1.4349.50 ▲9.7030.99 ▼5.54
Add New Post /wp-admin/post-new.php1,553 ▲3423.02 ▼0.13613.20 ▼70.6640.02 ▼15.97
Media Library /wp-admin/upload.php1,411 ▲264.08 ▼0.2281.08 ▼25.7047.98 ▼0.40
All Notices /wp-admin/edit.php?post_type=institute_notice1,2533.3645.3127.61
Add New /wp-admin/post-new.php?post_type=institute_notice1,6373.7561.9532.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/post-new.php?post_type=institute_notice
    • > Notice in wp-content/plugins/institute-notice/initial.php+120
    Undefined index: download_btn_text
    • > GET request to /wp-admin/post-new.php?post_type=institute_notice
    • > Notice in wp-content/plugins/institute-notice/initial.php+121
    Undefined index: notice_file_link

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/institute-notice/initial.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: The official readme.txt might help

institute-notice/initial.php 85% from 13 tests

The main PHP script in "Institute Notice" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("institute-notice.php" instead of "initial.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin190 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22530137
CSS11034
JavaScript12019

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected