72% aw-yearly-category-archives

Code Review | AW WordPress Yearly Category Archives

WordPress plugin AW WordPress Yearly Category Archives scored72%from 54 tests.

About plugin

  • Plugin page: aw-yearly-categor...
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.2-4.9.2
  • WordPress version: 6.3.1
  • First release: Aug 18, 2013
  • Latest release: Jan 30, 2018
  • Number of updates: 140
  • Update frequency: every 11.6 days
  • Top authors: awarren (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /7,585 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.03MB] [CPU: ▼4.19ms] Passed 4 tests

Analyzing server-side resources used by AW WordPress Yearly Category Archives
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.50 ▼3.32
Dashboard /wp-admin3.35 ▼0.0044.82 ▼15.10
Posts /wp-admin/edit.php3.40 ▲0.0447.32 ▲1.81
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.95 ▲9.36
Media Library /wp-admin/upload.php3.27 ▲0.0436.93 ▼0.14
Settings /wp-admin/admin.php?page=aw-yearly-category-archives/aw_yearlyCategory_settings_page.php3.2331.18
Yearly Category Archives /wp-admin/admin.php?page=aw-yearly-category-archives/aw_yearlyCategory_menu_page.php3.2529.25

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: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

AW WordPress Yearly Category Archives: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8614.39 ▼0.011.55 ▼0.0539.06 ▼6.17
Dashboard /wp-admin2,225 ▲515.66 ▲0.0980.90 ▼5.1786.81 ▲47.56
Posts /wp-admin/edit.php2,136 ▲362.06 ▲0.0739.12 ▲3.2133.29 ▼4.78
Add New Post /wp-admin/post-new.php1,552 ▲1823.03 ▲0.08700.12 ▲28.4754.66 ▲0.03
Media Library /wp-admin/upload.php1,424 ▲214.21 ▲0.0296.77 ▼14.3275.01 ▲27.18
Settings /wp-admin/admin.php?page=aw-yearly-category-archives/aw_yearlyCategory_settings_page.php8832.0122.6527.16
Yearly Category Archives /wp-admin/admin.php?page=aw-yearly-category-archives/aw_yearlyCategory_menu_page.php1,2023.3967.9442.82

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=aw-yearly-category-archives/aw_yearlyCategory_settings_page.php
    • > Notice in wp-content/plugins/aw-yearly-category-archives/aw_yearlyCategory_archives_plugin.php+181
    Undefined variable: radioButtonValue
    • > GET request to /wp-admin/admin.php?page=aw-yearly-category-archives/aw_yearlyCategory_settings_page.php
    • > Notice in wp-content/plugins/aw-yearly-category-archives/aw_yearlyCategory_archives_plugin.php+208
    Undefined variable: checkboxchecked

SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/aw-yearly-category-archives/aw_yearlyCategory_menu_page.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function aw_settings_page() in wp-content/plugins/aw-yearly-category-archives/aw_yearlyCategory_settings_page.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/aw-yearly-category-archives/aw_yearlyCategory_archives_plugin.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/aw-yearly-category-archives/aw_yearlyCategory_menu_page.php:59

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 96% from 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
4 plugin tags: yearly archives, archives, category archives by year, yearly category archives

aw-yearly-category-archives/aw_yearlyCategory_archives_plugin.php 92% from 13 tests

The main PHP file in "AW WordPress Yearly Category Archives" ver. 1.2.8 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("aw-yearly-category-archives.php" instead of "aw_yearlyCategory_archives_plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin255 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP38646235
CSS22013
JavaScript2017

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/read.png0.61KB0.70KB0.00%