78% iran-alves-upload-and-update-list-of-files

Code Review | Upload and Update List of Files

WordPress plugin Upload and Update List of Files scored78%from 54 tests.

About plugin

  • Plugin page: iran-alves-upload...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 18, 2020
  • Latest release: Sep 18, 2020
  • Number of updates: 2
  • Update frequency: every 4.0 days
  • Top authors: iranalves85 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /391 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.78ms] Passed 4 tests

Analyzing server-side resources used by Upload and Update List of Files
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.08 ▼1.28
Dashboard /wp-admin3.32 ▲0.0247.64 ▲1.60
Posts /wp-admin/edit.php3.37 ▲0.0144.27 ▼3.49
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.34 ▼3.95
Media Library /wp-admin/upload.php3.24 ▲0.0137.73 ▲3.50
Iran Alves - Upload and Update List of Files /wp-admin/edit.php?post_type=page&page=upload_update_list_files3.2832.41

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Upload and Update List of Files
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.20 ▼1.194.37 ▲2.3639.59 ▼11.11
Dashboard /wp-admin2,214 ▲284.89 ▼0.12106.99 ▼11.7241.93 ▼4.54
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0137.13 ▼0.2334.67 ▲0.29
Add New Post /wp-admin/post-new.php1,526 ▼723.37 ▲0.06598.67 ▼92.9744.31 ▼9.61
Media Library /wp-admin/upload.php1,396 ▲144.24 ▼0.04101.56 ▲3.2943.40 ▼0.81
Iran Alves - Upload and Update List of Files /wp-admin/edit.php?post_type=page&page=upload_update_list_files8552.0726.9736.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/iran-alves-upload-and-update-list-of-files/iran-alves-upload-and-update-list-of-files.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'IAUULF' not found in wp-content/plugins/iran-alves-upload-and-update-list-of-files/includes/templates/dashboard.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 24 tag instead of maximum 10
  • Requires php: Version not formatted correctly
You can look at the official readme.txt

iran-alves-upload-and-update-list-of-files/iran-alves-upload-and-update-list-of-files.php Passed 13 tests

The primary PHP file in "Upload and Update List of Files" version 0.1 is used by WordPress to initiate all plugin functionality
50 characters long description:
Generate files list for download or other purposes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin392 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4149122369
JavaScript14219
CSS1004

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity33.50
▷ Minimum class complexity9.00
▷ Maximum class complexity58.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1785.00%
▷ Protected methods00.00%
▷ Private methods315.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin