84% smart-archive-page-remove

Code Review | Smart Archive Page Remove

WordPress plugin Smart Archive Page Remove scored84%from 54 tests.

About plugin

  • Plugin page: smart-archive-pag...
  • Plugin version: 5.1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 24, 2015
  • Latest release: Oct 12, 2023
  • Number of updates: 43
  • Update frequency: every 74.1 days
  • Top authors: petersplugins (74.42%)smartware.cc (27.91%)

Code review

54 tests

User reviews

59 reviews

Install metrics

9,000+ active /73,964 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.48ms] Passed 4 tests

An overview of server-side resources used by Smart Archive Page Remove
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.14 ▲2.18
Dashboard /wp-admin3.55 ▲0.2145.15 ▼10.12
Posts /wp-admin/edit.php3.61 ▲0.2545.70 ▲0.38
Add New Post /wp-admin/post-new.php6.07 ▲0.1984.96 ▼6.37
Media Library /wp-admin/upload.php3.41 ▲0.1935.75 ▲3.70
Archive Pages /wp-admin/options-general.php?page=smartarchivepageremovesettings3.3936.00

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options
smart_archive_page_remove_data
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
category_children
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smart Archive Page Remove
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.29 ▼0.331.79 ▲0.1543.96 ▲1.49
Dashboard /wp-admin2,196 ▲165.52 ▼0.1485.92 ▼1.7137.70 ▼5.36
Posts /wp-admin/edit.php2,107 ▲102.01 ▲0.0735.65 ▲1.9032.92 ▼3.18
Add New Post /wp-admin/post-new.php1,538 ▲1018.17 ▼4.75610.38 ▼64.9463.02 ▲10.13
Media Library /wp-admin/upload.php1,398 ▼54.19 ▼0.0097.60 ▼0.2842.12 ▼3.06
Archive Pages /wp-admin/options-general.php?page=smartarchivepageremovesettings9212.2127.6333.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • widget_recent-comments
    • category_children
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/smart-archive-page-remove/inc/ppf/ppf-admin.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_SubClass' not found in wp-content/plugins/smart-archive-page-remove/inc/ppf/ppf-settings.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_Plugin' not found in wp-content/plugins/smart-archive-page-remove/inc/ppf/ppf-plugin-addon.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/smart-archive-page-remove/inc/ppf/ppf-plugin.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'PPF08_Class' not found in wp-content/plugins/smart-archive-page-remove/inc/ppf/ppf-subclass.php:16

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

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: hide archive pages, classicpress, archive page, delete archive pages, delete archive...

smart-archive-page-remove/smart-archive-page-remove.php Passed 13 tests

The primary PHP file in "Smart Archive Page Remove" version 5.1.1 is used by WordPress to initiate all plugin functionality
55 characters long description:
Completely remove unwanted Archive Pages from your Blog

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,191 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP167281,081865
CSS1510231
JavaScript2352290
SVG5005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.60
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes660.00%
▷ Concrete classes440.00%
▷ Final classes00.00%
Methods93
▷ Static methods11.08%
▷ Public methods8187.10%
▷ Protected methods55.38%
▷ Private methods77.53%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin