80% archiver

Code Review | Archiver

WordPress plugin Archiver scored80%from 54 tests.

About plugin

  • Plugin page: archiver
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 6.3.1
  • First release: Jun 20, 2016
  • Latest release: Jul 22, 2016
  • Number of updates: 14
  • Update frequency: every 5.1 days
  • Top authors: McGuive7 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /3,492 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.90MB] [CPU: ▼34.36ms] Passed 4 tests

An overview of server-side resources used by Archiver
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.025,033.20 ▲4,996.71
Dashboard /wp-admin3.05 ▼0.2623.89 ▼27.00
Posts /wp-admin/edit.php3.05 ▼0.3124.14 ▼25.85
Add New Post /wp-admin/post-new.php3.05 ▼2.8422.94 ▼73.18
Media Library /wp-admin/upload.php3.05 ▼0.1821.33 ▼11.41

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Archiver
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲15513.55 ▼0.808.04 ▲6.1135.60 ▼8.88
Dashboard /wp-admin2,210 ▲195.85 ▼0.0193.95 ▼13.1336.06 ▼9.30
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0335.55 ▲1.8333.63 ▼2.02
Add New Post /wp-admin/post-new.php6,232 ▲4,71221.69 ▼1.57826.11 ▲153.9957.85 ▲1.24
Media Library /wp-admin/upload.php1,395 ▲74.24 ▲0.01101.78 ▼1.5443.90 ▼2.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/archiver/includes/class-archiver.php+390
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: archive, machine, wayback, post, content

archiver/archiver.php Passed 13 tests

The principal PHP file in "Archiver" v. 1.0.5 is loaded by WordPress automatically on each request
47 characters long description:
Archive your content using the Wayback Machine.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin473 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4188387379
CSS28451
JavaScript217643

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity17.50
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods13.33%
▷ Public methods2893.33%
▷ Protected methods26.67%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin