10% small-archives

Code Review | Small Archives

WordPress plugin Small Archives scored10%from 54 tests.

About plugin

  • Plugin page: small-archives
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jan 12, 2014
  • Latest release: Jun 12, 2016
  • Number of updates: 12
  • Update frequency: every 90.8 days
  • Top authors: matsuoshi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,694 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/small-archives/small-archives.php+197
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼55.63ms] Passed 4 tests

An overview of server-side resources used by Small Archives
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.06 ▼36.25
Dashboard /wp-admin2.10 ▼1.255.91 ▼51.71
Posts /wp-admin/edit.php2.10 ▼1.265.85 ▼44.11
Add New Post /wp-admin/post-new.php2.10 ▼3.796.27 ▼90.46
Media Library /wp-admin/upload.php2.10 ▼1.136.00 ▼30.41

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_smallarchiveswidget
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Small Archives
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.44 ▲0.082.21 ▲0.6639.57 ▼2.08
Dashboard /wp-admin2,195 ▲145.62 ▲0.0190.20 ▼7.3643.73 ▼0.63
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0438.38 ▼3.8235.81 ▼3.74
Add New Post /wp-admin/post-new.php1,526 ▼723.42 ▲0.68626.33 ▼34.2852.59 ▲0.63
Media Library /wp-admin/upload.php1,394 ▼34.21 ▲0.0899.27 ▼18.9642.41 ▼4.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/small-archives/small-archives.php+197
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_smallarchiveswidget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/small-archives/small-archives.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
3 plugin tags: archive, archives, widget

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

Analyzing the main PHP file in "Small Archives" version 1.1.1
60 characters long description:
monthly archive widget, display smaller list in the sidebar.

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
There were no executable files found in this plugin133 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12847122
CSS10011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin