84% sf-archiver

Code Review | SF Archiver

WordPress plugin SF Archiver scored84%from 54 tests.

About plugin

  • Plugin page: sf-archiver
  • Plugin version: 3.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.5
  • WordPress version: 6.3.1
  • First release: Feb 24, 2012
  • Latest release: Apr 3, 2016
  • Number of updates: 36
  • Update frequency: every 41.8 days
  • Top authors: GregLone (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /3,290 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by SF Archiver
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.25 ▲0.10
Dashboard /wp-admin3.34 ▲0.0448.54 ▼4.02
Posts /wp-admin/edit.php3.39 ▲0.0446.40 ▼1.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0493.26 ▼9.81
Media Library /wp-admin/upload.php3.26 ▲0.0434.19 ▼4.92

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
sfar_version

Browser metrics Passed 4 tests

SF Archiver: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▼0.051.67 ▲0.0046.16 ▲5.86
Dashboard /wp-admin2,198 ▲245.63 ▲0.0888.66 ▲1.2137.41 ▼6.72
Posts /wp-admin/edit.php2,110 ▲102.06 ▲0.1236.72 ▼4.1330.39 ▼8.23
Add New Post /wp-admin/post-new.php1,529 ▼623.20 ▲5.12614.75 ▼9.5760.61 ▼2.11
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.02102.57 ▼6.9144.18 ▲0.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • 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)
Good news, no errors were detected

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
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/sf-archiver/inc/migrate.php
    • > /wp-content/plugins/sf-archiver/sf-archiver.php
    • > /wp-content/plugins/sf-archiver/inc/frontend.php
    • > /wp-content/plugins/sf-archiver/inc/admin.php

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 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #3 (A link to the post type archive page in the administration area.) image required
  • Screenshots: Add a description for screenshot #2 in sf-archiver/assets to your readme.txt
You can look at the official readme.txt

sf-archiver/sf-archiver.php Passed 13 tests

The primary PHP file in "SF Archiver" version 3.0.2 is used by WordPress to initiate all plugin functionality
81 characters long description:
Add some small and useful utilities for managing your Custom Post Types archives.

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 plugin294 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP512965271
PO File13423

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.70
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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