10% notification-store

Code Review | Notification : Store

WordPress plugin Notification : Store scored10%from 54 tests.

About plugin

  • Plugin page: notification-store
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.8
  • WordPress version: 6.3.1
  • First release: Aug 1, 2017
  • Latest release: Aug 1, 2017
  • Number of updates: 9
  • Update frequency: every 1.0 days
  • Top authors: hugopoi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /599 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/notification-store/notification-store.php+17
    require_once(vendor/autoload.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.48ms] Passed 4 tests

An overview of server-side resources used by Notification : Store
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.25 ▼4.78
Dashboard /wp-admin3.31 ▲0.0049.79 ▼7.96
Posts /wp-admin/edit.php3.36 ▲0.0051.85 ▲2.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.73 ▼15.26
Media Library /wp-admin/upload.php3.23 ▲0.0037.98 ▲2.80

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Notification : Store: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.011.63 ▼0.0437.07 ▼7.18
Dashboard /wp-admin2,195 ▲155.65 ▼0.0390.05 ▼7.9939.57 ▼4.03
Posts /wp-admin/edit.php2,103 ▲62.02 ▼0.0243.05 ▲3.2238.21 ▼0.26
Add New Post /wp-admin/post-new.php1,526 ▼023.31 ▼0.25624.74 ▲19.7955.71 ▲3.65
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.01100.94 ▼5.0645.79 ▲0.58

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/notification-store/notification-store.php on line 17
    • > PHP Fatal error
      require_once(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/notification-store/notification-store.php on line 17
    • > PHP Fatal error
      Uncaught Error: Class 'underDEV\\Utils\\Singleton' not found in wp-content/plugins/notification-store/inc/NotificationsStore.php:10

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

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: save, notify, cpt, notification, store

notification-store/notification-store.php Passed 13 tests

The main file in "Notification : Store" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Store your notifications to display it on frontend

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 plugin242 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP45650188
Markdown112036
JSON10018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin