90% arrowdan-notifier

Code Review | ARROWDAN Notifier

WordPress plugin ARROWDAN Notifier scored90%from 54 tests.

About plugin

  • Plugin page: arrowdan-notifier
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5.1
  • WordPress version: 6.3.1
  • First release: May 2, 2020
  • Latest release: Sep 26, 2020
  • Number of updates: 5
  • Update frequency: every 29.6 days
  • Top authors: arbn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /623 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.05MB] [CPU: ▼1.44ms] Passed 4 tests

Server-side resources used by ARROWDAN Notifier
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.38 ▼9.24
Dashboard /wp-admin3.36 ▲0.0548.52 ▲1.76
Posts /wp-admin/edit.php3.41 ▲0.0549.27 ▲5.92
Add New Post /wp-admin/post-new.php5.94 ▲0.0687.43 ▼0.15
Media Library /wp-admin/upload.php3.28 ▲0.0533.84 ▲1.87
ARROWDAN Notifier /wp-admin/options-general.php?page=arrowdan-notifier-settings3.2531.66
Test Notification /wp-admin/admin.php?page=arrowdan-test-notification3.26157.42

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for ARROWDAN Notifier
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.19 ▲0.001.79 ▼0.4041.02 ▼3.81
Dashboard /wp-admin2,210 ▲225.85 ▼0.03105.24 ▼8.9438.20 ▼6.53
Posts /wp-admin/edit.php2,090 ▼22.01 ▼0.0039.98 ▼0.4634.87 ▲0.90
Add New Post /wp-admin/post-new.php6,481 ▲4,94820.10 ▼3.02959.22 ▲306.7062.17 ▲3.30
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.0094.04 ▼3.1343.30 ▼1.62
ARROWDAN Notifier /wp-admin/options-general.php?page=arrowdan-notifier-settings8092.0625.3025.50
Test Notification /wp-admin/admin.php?page=arrowdan-test-notification6691.146.6919.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
7 plugin tags: flutter, firebase, notification, notifier, ios...

arrowdan-notifier/arrowdan-notifier.php Passed 13 tests

The main PHP script in "ARROWDAN Notifier" version 1.0.1 is automatically included on every request by WordPress
73 characters long description:
Notify users using Firebase Cloud Messaging (FCM) when post is published.

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 plugin231 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22315231

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin