100% wp-installer

Code Review | WP Installer

WordPress plugin WP Installer scored 100% from 53 tests.

About plugin

  • Plugin page: wp-installer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.5.3
  • WordPress version: 5.8.1
  • First release: Jul 27, 2016
  • Latest release: Jul 27, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wptech68 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 1,559 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by WP Installer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.2233.69 ▲14.22
Dashboard /wp-admin3.16 ▲0.1138.17 ▲1.90
Posts /wp-admin/edit.php3.27 ▲0.1744.95 ▲1.65
Add New Post /wp-admin/post-new.php5.52 ▲0.1092.49 ▼1,125.86
Media Library /wp-admin/upload.php3.10 ▲0.1035.48 ▼3.87

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Installer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,675 ▲9316.18 ▲0.659.66 ▲2.1247.30 ▼1.08
Dashboard /wp-admin2,953 ▲1035.95 ▲0.14136.06 ▲7.07109.97 ▲1.04
Posts /wp-admin/edit.php2,732 ▲292.70 ▲0.0065.93 ▲0.8990.03 ▼3.63
Add New Post /wp-admin/post-new.php1,675 ▼17818.92 ▼0.05377.95 ▲22.18108.35 ▼10.55
Media Library /wp-admin/upload.php1,798 ▲235.03 ▲0.03158.32 ▲5.11109.71 ▼6.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: launcher, settings, pages, posts, installer...

wp-installer/wpinstaller.php 92% from 13 tests

"WP Installer" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-installer.php" instead of "wpinstaller.php")

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
Good job! No executable or dangerous file extensions detected11,177 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
CSS311606,963
PHP294306712,370
JavaScript22942331,805
SVG10339

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity99.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods45
▷ Static methods817.78%
▷ Public methods3986.67%
▷ Protected methods613.33%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.49MB with 0.36MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot.png498.57KB130.31KB▼ 73.86%