83% anual-archive

Code Review | Annual Archive

WordPress plugin Annual Archive scored83%from 54 tests.

About plugin

  • Plugin page: anual-archive
  • Plugin version: 1.6.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 7, 2011
  • Latest release: Jan 11, 2023
  • Number of updates: 71
  • Update frequency: every 61.8 days
  • Top authors: baden03 (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

10,000+ active /142,419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Annual Archive
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.61 ▼1.28
Dashboard /wp-admin3.33 ▲0.0348.61 ▼1.06
Posts /wp-admin/edit.php3.38 ▲0.0349.14 ▼0.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.33 ▼12.10
Media Library /wp-admin/upload.php3.25 ▲0.0237.41 ▼0.14
Annual Archive /wp-admin/options-general.php?page=annual-archive-optons3.2229.56

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_annual_archive_widget
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Annual Archive
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.27 ▼0.471.93 ▲0.2640.12 ▼0.06
Dashboard /wp-admin2,199 ▲215.58 ▼0.0088.80 ▼17.1340.69 ▲2.33
Posts /wp-admin/edit.php2,083 ▼202.01 ▲0.0140.49 ▲0.4835.79 ▼2.22
Add New Post /wp-admin/post-new.php1,529 ▲323.26 ▲0.22629.85 ▲15.0958.85 ▲1.29
Media Library /wp-admin/upload.php1,398 ▼54.26 ▲0.0697.02 ▼5.4142.86 ▼0.29
Annual Archive /wp-admin/options-general.php?page=annual-archive-optons9432.0025.0326.47

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_annual_archive_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/anual-archive/annual_archive.php:601

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

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6, #7 in anual-archive/assets to your readme.txt
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can look at the official readme.txt

anual-archive/annual_archive.php 92% from 13 tests

The main PHP file in "Annual Archive" ver. 1.6.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("anual-archive.php" instead of "annual_archive.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 detected710 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP177100659
Markdown113037
JavaScript112714

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity61.50
▷ Minimum class complexity50.00
▷ Maximum class complexity73.00
Average method complexity7.72
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin