83% archives-by-category-and-date

Code Review | Archives by Category and Date

WordPress plugin Archives by Category and Date scored83%from 54 tests.

About plugin

  • Plugin page: archives-by-categ...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Jan 27, 2016
  • Latest release: Jul 3, 2023
  • Number of updates: 16
  • Update frequency: every 169.8 days
  • Top authors: WEN Solutions (93.75%)wptravel (12.5%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,506 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.54ms] Passed 4 tests

This is a short check of server-side resources used by Archives by Category and Date
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.56 ▲0.32
Dashboard /wp-admin3.34 ▲0.0444.05 ▼0.76
Posts /wp-admin/edit.php3.40 ▲0.0447.74 ▼1.36
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.51 ▼12.36
Media Library /wp-admin/upload.php3.27 ▲0.0433.19 ▲2.06

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_acdpdw_widget

Browser metrics Passed 4 tests

Archives by Category and Date: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.20 ▼1.564.16 ▲2.1637.59 ▼8.58
Dashboard /wp-admin2,206 ▲145.83 ▲0.90112.73 ▲2.1043.13 ▲3.97
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0537.12 ▲0.8931.26 ▼3.16
Add New Post /wp-admin/post-new.php1,514 ▼517.72 ▼5.50677.66 ▲69.2182.29 ▲27.43
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0897.93 ▼10.6240.78 ▼1.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_acdpdw_widget
    • widget_recent-posts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/archives-by-category-and-date/widget/acd-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

archives-by-category-and-date/archives-category-date.php 77% from 13 tests

"Archives by Category and Date" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("archives-by-category-and-date.php" instead of "archives-category-date.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 218 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin187 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33192145
CSS11142

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity10.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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected