89% dynamic-month-year-into-posts

Code Review | Dynamic Month & Year into Posts

WordPress plugin Dynamic Month & Year into Posts scored89%from 54 tests.

About plugin

  • Plugin page: dynamic-month-yea...
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2020
  • Latest release: Aug 8, 2023
  • Number of updates: 57
  • Update frequency: every 22.2 days
  • Top authors: gauravtiwari (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

5,000+ active /34,513 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.53ms] Passed 4 tests

An overview of server-side resources used by Dynamic Month & Year into Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.27 ▼3.42
Dashboard /wp-admin3.34 ▲0.0347.47 ▼1.90
Posts /wp-admin/edit.php3.39 ▲0.0353.12 ▲3.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.79 ▲4.99
Media Library /wp-admin/upload.php3.26 ▲0.0336.31 ▼0.21

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Dynamic Month & Year into Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.42 ▼0.121.70 ▼0.0244.62 ▲3.48
Dashboard /wp-admin2,192 ▲155.54 ▼0.0884.68 ▼5.2337.61 ▼7.21
Posts /wp-admin/edit.php2,103 ▲32.12 ▲0.1439.58 ▼0.1636.19 ▼2.42
Add New Post /wp-admin/post-new.php1,529 ▼923.29 ▲5.16637.42 ▼5.9547.00 ▼31.70
Media Library /wp-admin/upload.php1,394 ▼64.18 ▲0.02100.09 ▲2.8041.52 ▼4.41

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
Please fix the following items
  • 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 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 no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 86% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === dynamic-month-year-into-posts === )
  • Screenshots: Add an image for screenshot #5 (Multi Language Support)
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
The official readme.txt might help

dynamic-month-year-into-posts/dynamic-month-year-into-posts.php 92% from 13 tests

"Dynamic Month & Year into Posts" version 1.3.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 302 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected218 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32178218

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.01
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%
Functions36
▷ Named functions2980.56%
▷ Anonymous functions719.44%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin