84% recent-archive-more-widget

Code Review | Recent Archive More Widget

WordPress plugin Recent Archive More Widget scored 84% from 54 tests.

About plugin

  • Plugin page: recent-archive-mo...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Nov 5, 2014
  • Latest release: Nov 8, 2014
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: De paragon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,053 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Recent Archive More Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1536.89 ▲16.32
Dashboard /wp-admin3.09 ▲0.0441.18 ▼7.57
Posts /wp-admin/edit.php3.14 ▲0.0446.51 ▲1.45
Add New Post /wp-admin/post-new.php5.45 ▲0.0285.86 ▼581.22
Media Library /wp-admin/upload.php3.03 ▲0.0335.94 ▲0.72

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
widget_recent_archive_post

Browser metrics Passed 4 tests

Recent Archive More Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▲10915.93 ▲0.4110.38 ▼0.8445.63 ▼4.71
Dashboard /wp-admin2,970 ▲395.92 ▼0.21144.13 ▼37.27120.36 ▲16.98
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0068.48 ▼2.0594.30 ▼1.16
Add New Post /wp-admin/post-new.php1,615 ▼6821.01 ▲2.44289.51 ▼97.86101.77 ▼2.48
Media Library /wp-admin/upload.php1,807 ▼05.05 ▲0.02155.92 ▼4.96121.65 ▲8.61

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_recent_archive_post

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recent-archive-more-widget/recent-archive.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
No plugin tags provided

recent-archive-more-widget/recent-archive.php 92% from 13 tests

The main file in "Recent Archive More Widget" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("recent-archive-more-widget.php" instead of "recent-archive.php")

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
Everything looks great! No dangerous files found in this plugin175 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15340132
CSS19443

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin