90% bulk-plugin-installation

Code Review | Bulk Plugin Installation

WordPress plugin Bulk Plugin Installation scored90%from 54 tests.

About plugin

  • Plugin page: bulk-plugin-insta...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.5
  • WordPress version: 6.3.1
  • First release: Jan 7, 2013
  • Latest release: Jan 14, 2013
  • Number of updates: 9
  • Update frequency: every 0.9 days
  • Top authors: estudiobee (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

600+ active /22,618 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Bulk Plugin Installation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0442.56 ▼2.13
Dashboard /wp-admin3.38 ▼0.0048.38 ▼14.82
Posts /wp-admin/edit.php3.50 ▲0.1049.90 ▼1.54
Add New Post /wp-admin/post-new.php5.96 ▲0.0491.02 ▼19.07
Media Library /wp-admin/upload.php3.31 ▲0.0444.46 ▲7.21

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Bulk Plugin Installation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.141.85 ▲0.0441.08 ▲2.66
Dashboard /wp-admin2,195 ▲155.60 ▼0.0287.88 ▼5.8340.00 ▼0.28
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0835.59 ▼0.5735.01 ▲1.46
Add New Post /wp-admin/post-new.php1,526 ▼223.62 ▲0.54705.35 ▲51.1252.49 ▼5.37
Media Library /wp-admin/upload.php1,397 ▼64.17 ▼0.0699.51 ▼2.3043.91 ▼2.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

bulk-plugin-installation/bulk-plugin-installation.php Passed 13 tests

The entry point to "Bulk Plugin Installation" version 1.1 is a PHP file that has certain tags in its header comment area
102 characters long description:
Allows you to install one or more plugins simply by typing their names or download URLs in a textarea.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin221 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14953175
PO File1132746

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin