84% aged-content-message

Code Review | Aged Content Message

WordPress plugin Aged Content Message scored 84% from 54 tests.

About plugin

  • Plugin page: aged-content-message
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.0.3
  • WordPress version: 6.3.1
  • First release: Nov 6, 2014
  • Latest release: Feb 1, 2019
  • Number of updates: 19
  • Update frequency: every 81.5 days
  • Top authors: glueckpress (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 1,888 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Aged Content Message
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.09 ▲2.34
Dashboard /wp-admin3.32 ▲0.0240.58 ▼7.37
Posts /wp-admin/edit.php3.37 ▲0.0249.69 ▲1.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0279.12 ▼10.08
Media Library /wp-admin/upload.php3.25 ▲0.0234.27 ▲3.17
Aged Content /wp-admin/options-general.php?page=aged-content-message3.2126.94

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
aged_content_message__settings
theysaidso_admin_options
aged_content_message__status

Browser metrics Passed 4 tests

Checking browser requirements for Aged Content Message
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲11113.21 ▼1.121.77 ▲0.1636.65 ▼7.07
Dashboard /wp-admin2,210 ▲255.88 ▲1.03110.68 ▼5.6347.30 ▲5.78
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0439.27 ▲2.0734.37 ▼0.32
Add New Post /wp-admin/post-new.php1,536 ▲523.32 ▼0.07657.38 ▲38.9351.35 ▼0.11
Media Library /wp-admin/upload.php1,392 ▲44.22 ▲0.0296.14 ▼5.1640.87 ▼2.66
Aged Content /wp-admin/options-general.php?page=aged-content-message9292.0227.7438.96

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • aged_content_message__settings
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 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/aged-content-message/inc/admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aged-content-message/inc/frontend.php:5

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: alert, date, message, content, warning...

aged-content-message/aged-content-message.php Passed 13 tests

"Aged Content Message" version 1.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
125 characters long description:
Displays a message at the top of single posts published x years ago or earlier, informing about content that may be outdated.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin654 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3114192377
PO File25455250
JSON10027

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.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 are no PNG files in this plugin