78% upunzipper

Code Review | Upunzipper

WordPress plugin Upunzipper scored78%from 54 tests.

About plugin

  • Plugin page: upunzipper
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2
  • WordPress version: 6.3.1
  • First release: Apr 28, 2015
  • Latest release: Apr 28, 2015
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: ravidhu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,852 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.26ms] Passed 4 tests

Analyzing server-side resources used by Upunzipper
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.53 ▼4.34
Dashboard /wp-admin3.48 ▲0.1756.18 ▼0.20
Posts /wp-admin/edit.php3.53 ▲0.1860.51 ▲3.76
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.08 ▼14.62
Media Library /wp-admin/upload.php3.32 ▲0.0941.13 ▲2.11

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Upunzipper
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,032 ▲27114.74 ▲0.124.87 ▲3.0841.12 ▼1.16
Dashboard /wp-admin2,355 ▲1756.15 ▲0.57119.81 ▲18.4243.75 ▲0.09
Posts /wp-admin/edit.php2,283 ▲1803.41 ▲1.4655.38 ▲12.4638.13 ▲1.26
Add New Post /wp-admin/post-new.php1,546 ▲1823.73 ▲0.64670.19 ▼16.0536.80 ▼21.61
Media Library /wp-admin/upload.php1,420 ▲174.18 ▼0.0182.39 ▼20.9042.43 ▼3.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/upunzipper/public/partials/upunzipper-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/upunzipper/admin/partials/upunzipper-admin-display.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === upunzipper === )
Please take inspiration from this readme.txt

upunzipper/upunzipper.php Passed 13 tests

The principal PHP file in "Upunzipper" v. 1.0.0 is loaded by WordPress automatically on each request
81 characters long description:
This plugin allow you extract and add files in the media library from a zip file.

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
Everything looks great! No dangerous files found in this plugin658 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13184551386
JavaScript26430198
PO File1192350
CSS23824

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.88
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods39
▷ Static methods717.95%
▷ Public methods2974.36%
▷ Protected methods00.00%
▷ Private methods1025.64%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin