84% post-modified-time-block

Code Review | Post Modified Time Block

WordPress plugin Post Modified Time Block scored 84% from 54 tests.

About plugin

  • Plugin page: post-modified-tim...
  • Plugin version: 0.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0
  • WordPress version: 6.3.1
  • First release: Apr 4, 2022
  • Latest release: May 6, 2022
  • Number of updates: 4
  • Update frequency: every 70.3 days
  • Top authors: richtabor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 2,721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.07ms] Passed 4 tests

Analyzing server-side resources used by Post Modified Time Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.74 ▼15.88
Dashboard /wp-admin3.32 ▲0.0246.43 ▼5.39
Posts /wp-admin/edit.php3.37 ▲0.0249.04 ▲1.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.52 ▼4.77
Media Library /wp-admin/upload.php3.24 ▲0.0236.65 ▲1.85

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Modified Time Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.33 ▼1.041.70 ▼0.4940.45 ▼2.71
Dashboard /wp-admin2,206 ▲185.83 ▲0.9596.95 ▼22.5441.81 ▼1.69
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0641.74 ▲4.2638.60 ▲4.48
Add New Post /wp-admin/post-new.php6,583 ▲5,06929.38 ▲11.91881.63 ▲286.5555.02 ▼1.33
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0298.19 ▲3.1042.99 ▼0.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-modified-time-block/post-modified-time-block.php:30

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

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
5 plugin tags: posts, block, gutenberg, blocks, update

post-modified-time-block/post-modified-time-block.php Passed 13 tests

The entry point to "Post Modified Time Block" version 0.2.0 is a PHP file that has certain tags in its header comment area
51 characters long description:
A block to display the last updated date of a post.

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
There were no executable files found in this plugin76 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JSON10052
PHP263023
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions2
▷ Named functions2100.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 are no PNG files in this plugin