84% smarter-archives

Code Review | Smarter Archives

WordPress plugin Smarter Archives scored84%from 54 tests.

About plugin

  • Plugin page: smarter-archives
  • Plugin version: 3.2.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 16, 2007
  • Latest release: Aug 17, 2020
  • Number of updates: 72
  • Update frequency: every 65.5 days
  • Top authors: rob1n (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /16,050 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼11.12ms] Passed 4 tests

An overview of server-side resources used by Smarter Archives
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.32 ▼2.22
Dashboard /wp-admin3.31 ▼0.0449.11 ▼19.87
Posts /wp-admin/edit.php3.36 ▲0.0047.87 ▼0.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.92 ▼21.40
Media Library /wp-admin/upload.php3.23 ▲0.0036.49 ▲0.18

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smarter Archives
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.54 ▲0.191.83 ▲0.1546.09 ▲5.05
Dashboard /wp-admin2,195 ▲155.62 ▲0.0088.40 ▼1.3638.40 ▼5.50
Posts /wp-admin/edit.php2,103 ▲61.99 ▼0.0134.60 ▼2.0031.76 ▼5.10
Add New Post /wp-admin/post-new.php1,526 ▼223.55 ▲0.29678.03 ▲30.9252.02 ▲0.58
Media Library /wp-admin/upload.php1,397 ▼34.25 ▲0.08101.83 ▲4.7244.28 ▼0.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/smarter-archives/smarter-archives.php:139

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: archives, archive

smarter-archives/smarter-archives.php Passed 13 tests

The principal PHP file in "Smarter Archives" v. 3.2.5 is loaded by WordPress automatically on each request
83 characters long description:
Easy, simple, and intuitive way to access archives via months, broken down by year.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin458 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File6110134345
PHP12910113

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions6
▷ Named functions6100.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
No PNG files were detected