83% wp-plugin-management

Code Review | WP Install From Web

WordPress plugin WP Install From Web scored83%from 54 tests.

About plugin

  • Plugin page: wp-plugin-management
  • Plugin version: 1.09
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 17, 2020
  • Latest release: Nov 27, 2020
  • Number of updates: 11
  • Update frequency: every 13.4 days
  • Top authors: safetydev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /377 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by WP Install From Web
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.51 ▼2.81
Dashboard /wp-admin3.31 ▲0.0147.73 ▲0.59
Posts /wp-admin/edit.php3.36 ▲0.0144.45 ▼0.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.36 ▼9.86
Media Library /wp-admin/upload.php3.23 ▲0.0134.08 ▼0.16
Install from URL /wp-admin/plugins.php?page=plg_EYS7S_page3.2029.54

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • There were 1 file (13.56KB) illegally modified outside of "wp-content/plugins/wp-plugin-management/" and "wp-content/uploads/"
    • (new file) siteguarding_tools.php
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by WP Install From Web
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.17 ▼1.061.91 ▲0.2842.91 ▲2.10
Dashboard /wp-admin2,213 ▲225.91 ▲1.0196.50 ▼4.6539.92 ▼2.66
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0235.35 ▼1.5733.04 ▼2.09
Add New Post /wp-admin/post-new.php1,550 ▲3018.13 ▼5.11635.16 ▼53.5767.26 ▲12.20
Media Library /wp-admin/upload.php1,392 ▲14.19 ▼0.0392.54 ▼8.4440.83 ▼3.77
Install from URL /wp-admin/plugins.php?page=plg_EYS7S_page7812.0524.8725.04

Uninstaller [IO: ▲0.01MB] [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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-plugin-management/wp-plugin-management.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 93% 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: There are too many tags (21 tag instead of maximum 10)
Please take inspiration from this readme.txt

wp-plugin-management/wp-plugin-management.php 92% from 13 tests

"WP Install From Web" version 1.09's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 196 characters long)

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
Success! There were no dangerous files found in this plugin94 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
help.png49.83KB19.67KB▼ 60.52%