84% simple-yearly-archive

Code Review | Simple Yearly Archive

WordPress plugin Simple Yearly Archive scored84%from 54 tests.

About plugin

  • Plugin page: simple-yearly-arc...
  • Plugin version: 2.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.3.99
  • WordPress version: 6.3.1
  • First release: Apr 4, 2008
  • Latest release: Jul 27, 2023
  • Number of updates: 247
  • Update frequency: every 24.0 days
  • Top authors: Alphawolf (100%)

Code review

54 tests

User reviews

28 reviews

Install metrics

7,000+ active /165,111 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Simple Yearly Archive
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0933.72 ▼0.39
Dashboard /wp-admin3.44 ▲0.1345.93 ▲1.38
Posts /wp-admin/edit.php3.55 ▲0.1945.53 ▼2.24
Add New Post /wp-admin/post-new.php6.02 ▲0.1391.57 ▼0.86
Media Library /wp-admin/upload.php3.36 ▲0.1338.20 ▲6.25
Simple Yearly Archive /wp-admin/options-general.php?page=simple-yearly-archive3.3943.27

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Yearly Archive
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.30 ▼0.051.61 ▲0.0643.09 ▲3.91
Dashboard /wp-admin2,212 ▲355.54 ▼0.1381.33 ▼4.9741.30 ▼3.67
Posts /wp-admin/edit.php2,120 ▲202.10 ▲0.1033.79 ▼2.0131.62 ▼3.90
Add New Post /wp-admin/post-new.php1,559 ▲3118.14 ▼5.01604.73 ▼60.5760.43 ▲6.01
Media Library /wp-admin/upload.php1,417 ▲174.23 ▲0.0293.67 ▼13.0243.63 ▼1.66
Simple Yearly Archive /wp-admin/options-general.php?page=simple-yearly-archive1,3301.8625.2449.06

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • 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
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-yearly-archive/simple-yearly-archive.php:659
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-yearly-archive/admin/views/admin.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-yearly-archive/admin/authorplugins.inc.php:54

User-side errors Passed 1 test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
The official readme.txt is a good inspiration

simple-yearly-archive/simple-yearly-archive.php Passed 13 tests

The primary PHP file in "Simple Yearly Archive" version 2.2.2 is used by WordPress to initiate all plugin functionality
45 characters long description:
A simple, clean yearly list of your archives.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,070 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PO File124305551,123

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity45.00
▷ Minimum class complexity11.00
▷ Maximum class complexity79.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods26.25%
▷ Public methods2887.50%
▷ Protected methods00.00%
▷ Private methods412.50%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ 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