84% wp-yearly-and-monthly-archive-list

Code Review | Yearwise Monthwise Archive of Posts

WordPress plugin Yearwise Monthwise Archive of Posts scored84%from 54 tests.

About plugin

  • Plugin page: wp-yearly-and-mon...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: May 13, 2015
  • Latest release: Jul 21, 2022
  • Number of updates: 38
  • Update frequency: every 69.1 days
  • Top authors: position2devteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,237 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.83ms] Passed 4 tests

Server-side resources used by Yearwise Monthwise Archive of Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.31 ▼3.45
Dashboard /wp-admin3.31 ▲0.0146.98 ▼5.73
Posts /wp-admin/edit.php3.37 ▲0.0145.82 ▼3.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.77 ▼10.65
Media Library /wp-admin/upload.php3.24 ▲0.0134.84 ▲0.77

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Yearwise Monthwise Archive of Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.384.55 ▲2.8040.91 ▼7.12
Dashboard /wp-admin2,200 ▲95.87 ▲0.99102.87 ▼16.1239.82 ▼5.60
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0433.67 ▼4.9936.71 ▲4.24
Add New Post /wp-admin/post-new.php1,539 ▲222.95 ▼0.20715.75 ▲57.5262.25 ▲7.01
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.01101.78 ▲2.3145.67 ▲1.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_wapt_blog_archives
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-yearly-and-monthly-archive-list/wapt.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed: The official readme.txt might help

wp-yearly-and-monthly-archive-list/wapt.php 92% from 13 tests

This is the main PHP file of "Yearwise Monthwise Archive of Posts" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-yearly-and-monthly-archive-list.php" instead of "wapt.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected116 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1141789
JavaScript10027
CSS1100

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin