84% infinite-notification

Code Review | Infinite Notification - Sales Notification Plugin

WordPress plugin Infinite Notification - Sales Notification Plugin scored84%from 54 tests.

About plugin

  • Plugin page: infinite-notifica...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2022
  • Latest release: Jun 30, 2022
  • Number of updates: 7
  • Update frequency: every 21.9 days
  • Top authors: smartdatasoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /2,927 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.74ms] Passed 4 tests

A check of server-side resources used by Infinite Notification - Sales Notification Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.83 ▼10.00
Dashboard /wp-admin3.32 ▲0.0249.09 ▼2.19
Posts /wp-admin/edit.php3.37 ▲0.0250.28 ▼2.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.20 ▼20.02
Media Library /wp-admin/upload.php3.25 ▲0.0237.14 ▼1.79

Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Infinite Notification - Sales Notification Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.25 ▼0.482.03 ▲0.4241.97 ▼1.83
Dashboard /wp-admin2,214 ▲405.61 ▲0.0984.96 ▼18.6439.80 ▼2.95
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0640.48 ▲5.4039.33 ▲1.51
Add New Post /wp-admin/post-new.php1,377 ▼14917.13 ▼6.50566.28 ▼136.2750.61 ▼12.91
Media Library /wp-admin/upload.php1,413 ▲134.27 ▲0.03101.59 ▼8.1546.68 ▲2.30

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-notification/include/functions.php:124
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infinite-notification/include/settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.png. Screenshots are stored in the /assets directory.), #2 (This is the second screen shot from the frontend screenshot-2.png)
You can look at the official readme.txt

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

The primary PHP file in "Infinite Notification - Sales Notification Plugin" version 1.0.2 is used by WordPress to initiate all plugin functionality
25 characters long description:
Sales Notification Plugin

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
Good job! No executable or dangerous file extensions detected444 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP34510249
CSS140132
JavaScript216063

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png18.21KB7.52KB▼ 58.71%
(invalid) assets/screenshot-1.png42.21KB0.00KB▼ 100.00%