84% jsm-accurate-modified-time

Code Review | JSM Accurate Modified Time for SEO

WordPress plugin JSM Accurate Modified Time for SEO scored 84% from 54 tests.

About plugin

  • Plugin page: jsm-accurate-modi...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2022
  • Latest release: Aug 29, 2023
  • Number of updates: 84
  • Update frequency: every 6.1 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,071 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 gracefully, with no errors

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

Server-side resources used by JSM Accurate Modified Time for SEO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0140.97 ▼0.17
Dashboard /wp-admin3.31 ▲0.0154.54 ▲1.18
Posts /wp-admin/edit.php3.36 ▲0.0047.00 ▼1.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.38 ▼0.62
Media Library /wp-admin/upload.php3.23 ▲0.0036.70 ▲1.46

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

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

Browser metrics Passed 4 tests

JSM Accurate Modified Time for SEO: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.141.81 ▲0.1439.12 ▼8.21
Dashboard /wp-admin2,209 ▲185.87 ▲0.96100.71 ▼2.9241.23 ▼4.35
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0034.18 ▼7.4535.70 ▼1.08
Add New Post /wp-admin/post-new.php1,534 ▲2023.73 ▲6.25669.90 ▼15.9057.87 ▲9.72
Media Library /wp-admin/upload.php1,385 ▼64.22 ▲0.0798.44 ▼0.7142.51 ▼2.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/jsm-accurate-modified-time/jsm-accurate-modified-time.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: post, time, content, shortcode, block...

jsm-accurate-modified-time/jsm-accurate-modified-time.php Passed 13 tests

The primary PHP file in "JSM Accurate Modified Time for SEO" version 1.0.1 is used by WordPress to initiate all plugin functionality
89 characters long description:
Update post/page modified times when output from post/page shortcodes and blocks changes.

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
Good job! No executable or dangerous file extensions detected64 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1294047
Markdown17017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods133.33%
▷ Public methods3100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin