77% current-age

Code Review | Current Age Plugin

WordPress plugin Current Age Plugin scored 77% from 54 tests.

About plugin

  • Plugin page: current-age
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Feb 1, 2013
  • Latest release: Jul 15, 2016
  • Number of updates: 18
  • Update frequency: every 70.0 days
  • Top authors: BilliardGreg (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active / 2,771 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.18MB] [CPU: ▼7.16ms] Passed 4 tests

Server-side resources used by Current Age Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.73 ▼0.7312.49 ▼26.14
Dashboard /wp-admin3.31 ▲0.0147.42 ▲0.90
Posts /wp-admin/edit.php3.36 ▲0.0143.74 ▼3.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.12 ▲3.71
Media Library /wp-admin/upload.php3.23 ▲0.0034.74 ▲0.50
Current Age Settings /wp-admin/options-general.php?page=currentage-submenu-page3.2528.96

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Current Age Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▼714.74 ▼0.011.72 ▼0.1442.63 ▲1.82
Dashboard /wp-admin2,207 ▲44.84 ▼1.1699.79 ▲2.6541.43 ▲3.90
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0336.82 ▼0.9033.47 ▼2.69
Add New Post /wp-admin/post-new.php1,536 ▲823.15 ▼0.21602.10 ▼33.4765.63 ▲13.11
Media Library /wp-admin/upload.php1,392 ▲14.19 ▲0.0595.27 ▼6.4843.87 ▼2.84
Current Age Settings /wp-admin/options-general.php?page=currentage-submenu-page1,2022.0322.4232.10

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 were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=currentage-submenu-page
    • > Notice in wp-content/plugins/current-age/currentage_admin.php+61
    Trying to access array offset on value of type bool
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=currentage-submenu-page
    • > Deprecated in wp-content/plugins/current-age/currentage.php+55
    mktime(): You should be using the time() function instead

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/current-age/currentage.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function getcalanguage() in wp-content/plugins/current-age/currentage_admin.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (No Screenshot)
  • Tags: There were no tags found
Please take inspiration from this readme.txt

current-age/currentage.php 85% from 13 tests

The entry point to "Current Age Plugin" version 1.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("current-age.php" instead of "currentage.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 251 characters long)

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 plugin273 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3399273

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG files were detected