90% age-shortcodes

Code Review | Age Shortcodes

WordPress plugin Age Shortcodes scored 90% from 54 tests.

About plugin

  • Plugin page: age-shortcodes
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 15, 2023
  • Latest release: Aug 10, 2023
  • Number of updates: 4
  • Update frequency: every 14.0 days
  • Top authors: praxismarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 211 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.92ms] Passed 4 tests

This is a short check of server-side resources used by Age Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.72 ▼3.72
Dashboard /wp-admin3.31 ▲0.0144.08 ▼6.33
Posts /wp-admin/edit.php3.36 ▲0.0046.78 ▼1.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.62 ▼16.43
Media Library /wp-admin/upload.php3.24 ▲0.0033.78 ▼0.45

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Age Shortcodes: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.451.59 ▼0.2040.10 ▲2.68
Dashboard /wp-admin2,206 ▲215.86 ▲0.02108.35 ▲0.1041.58 ▲0.79
Posts /wp-admin/edit.php2,092 ▼02.02 ▲0.0238.59 ▼22.2633.95 ▼8.17
Add New Post /wp-admin/post-new.php1,542 ▲918.01 ▼5.13603.87 ▼23.1552.94 ▼2.69
Media Library /wp-admin/upload.php1,385 ▼04.23 ▲0.0097.36 ▼4.1541.54 ▼4.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: date, current, time, shortcode, year...

age-shortcodes/age-shortcodes.php Passed 13 tests

The entry point to "Age Shortcodes" version 0.1 is a PHP file that has certain tags in its header comment area
59 characters long description:
Add shortcodes for the age of someone or something in years

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
No dangerous file extensions were detected13 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin