84% quickupload

Code Review | QuickUpload

WordPress plugin QuickUpload scored84%from 54 tests.

About plugin

  • Plugin page: quickupload
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 1, 2012
  • Latest release: Nov 2, 2012
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: aymanalzarrad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,623 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.05ms] Passed 4 tests

This is a short check of server-side resources used by QuickUpload
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.13 ▲5.23
Dashboard /wp-admin3.33 ▲0.0239.16 ▼10.26
Posts /wp-admin/edit.php3.36 ▲0.0043.85 ▼7.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.56 ▼14.69
Media Library /wp-admin/upload.php3.24 ▲0.0036.03 ▲4.29

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by QuickUpload
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,015 ▲28014.12 ▼0.631.56 ▼0.2938.58 ▼10.03
Dashboard /wp-admin2,418 ▲2275.60 ▲0.69121.26 ▲11.3542.21 ▼0.64
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0634.88 ▼1.1633.54 ▲1.67
Add New Post /wp-admin/post-new.php1,533 ▼018.28 ▼5.26603.29 ▼106.0263.45 ▼3.24
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0399.62 ▼6.9539.29 ▼10.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | 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 take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quickupload/quickupload.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/quickupload/uploader.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can look at the official readme.txt

quickupload/quickupload.php Passed 13 tests

The entry point to "QuickUpload" version 1.0 is a PHP file that has certain tags in its header comment area
82 characters long description:
This plugin will embed the drag&drop media uploader right into a dashboard widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin112 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24128112

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin