90% stale-content-notifier

Code Review | Stale Content Notifier

WordPress plugin Stale Content Notifier scored90%from 54 tests.

About plugin

  • Plugin page: stale-content-not...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2023
  • Latest release: Nov 26, 2023
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: pluginbakery (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

A check of server-side resources used by Stale Content Notifier
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.93 ▲0.63
Dashboard /wp-admin3.43 ▲0.0874.04 ▲15.89
Posts /wp-admin/edit.php3.40 ▲0.0548.49 ▼1.84
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.04 ▼6.72
Media Library /wp-admin/upload.php3.28 ▲0.0534.19 ▼0.72
Stale Content Notifier /wp-admin/tools.php?page=scntfy_tools3.2530.25

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
scntfy_stale_timeframe
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Stale Content Notifier
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.37 ▼0.361.66 ▲0.0141.20 ▲3.43
Dashboard /wp-admin2,199 ▲225.61 ▼0.0295.70 ▼3.4141.96 ▼0.31
Posts /wp-admin/edit.php2,104 ▲71.97 ▲0.0241.30 ▼0.0636.93 ▼1.52
Add New Post /wp-admin/post-new.php1,528 ▲223.30 ▲0.59627.09 ▲18.0949.48 ▲1.30
Media Library /wp-admin/upload.php1,404 ▲104.20 ▲0.01104.98 ▲6.4042.05 ▲1.11
Stale Content Notifier /wp-admin/tools.php?page=scntfy_tools8212.0027.3327.23

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • scntfy_stale_timeframe
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: content, stale-content, maintenance, posts, notification

stale-content-notifier/stale-content-notifier.php Passed 13 tests

The main PHP script in "Stale Content Notifier" version 1.0.0 is automatically included on every request by WordPress
109 characters long description:
Automatically notify authors and administrators about posts that haven't been updated for a specified period.

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 plugin218 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14148218

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin