89% sewn-in-notifications

Code Review | Sewn In Notifications

WordPress plugin Sewn In Notifications scored 89% from 54 tests.

About plugin

  • Plugin page: sewn-in-notificat...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 13, 2015
  • Latest release: Jun 13, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jcow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 858 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.67ms] Passed 4 tests

This is a short check of server-side resources used by Sewn In Notifications
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.74 ▼7.50
Dashboard /wp-admin3.35 ▲0.0444.27 ▼8.07
Posts /wp-admin/edit.php3.40 ▲0.0444.08 ▼3.37
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.48 ▲7.50
Media Library /wp-admin/upload.php3.27 ▲0.0433.97 ▲0.28

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Sewn In Notifications
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲15113.95 ▼0.438.05 ▲5.2438.35 ▼8.18
Dashboard /wp-admin2,206 ▲215.90 ▲0.0196.80 ▼0.9737.66 ▼9.56
Posts /wp-admin/edit.php2,086 ▼32.04 ▼0.0135.60 ▲0.1432.82 ▼1.26
Add New Post /wp-admin/post-new.php1,542 ▲2818.38 ▲0.81626.40 ▼11.3055.04 ▼10.20
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0098.94 ▲4.0843.67 ▲1.37

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% 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
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === sewn-in-notifications === )
The official readme.txt is a good inspiration

sewn-in-notifications/sewn-notifications.php 77% from 13 tests

The main PHP script in "Sewn In Notifications" version 1.1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sewn-in-notifications.php" instead of "sewn-notifications.php")
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin946 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6202569768
CSS2260132
JavaScript220746

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity27.25
▷ Minimum class complexity3.00
▷ Maximum class complexity65.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods47
▷ Static methods00.00%
▷ Public methods47100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin