90% plugin-installer-speedup

Code Review | Plugin Installer Speedup

WordPress plugin Plugin Installer Speedup scored90%from 54 tests.

About plugin

  • Plugin page: plugin-installer-...
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.1
  • WordPress version: 6.3.1
  • First release: Mar 17, 2015
  • Latest release: Jan 12, 2017
  • Number of updates: 8
  • Update frequency: every 83.4 days
  • Top authors: szepe.viktor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,578 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Plugin Installer Speedup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.91 ▼1.74
Dashboard /wp-admin3.32 ▲0.0246.49 ▲0.38
Posts /wp-admin/edit.php3.37 ▲0.0242.79 ▼6.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.89 ▼15.00
Media Library /wp-admin/upload.php3.25 ▲0.0235.12 ▲4.45
Upload Plugin /wp-admin/plugin-install.php?tab=upload3.3232.41
Favorites /wp-admin/plugin-install.php?tab=favorites3.3233.10

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Plugin Installer Speedup: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.20 ▼1.181.93 ▲0.1342.36 ▼0.24
Dashboard /wp-admin2,220 ▲385.88 ▲0.0696.42 ▼7.1136.19 ▼7.17
Posts /wp-admin/edit.php2,097 ▲52.04 ▲0.0634.11 ▼9.3033.79 ▼2.65
Add New Post /wp-admin/post-new.php1,553 ▲2018.66 ▼4.39607.74 ▲8.5353.59 ▲2.46
Media Library /wp-admin/upload.php1,402 ▲114.19 ▼0.05100.89 ▲5.7941.56 ▼4.45
Upload Plugin /wp-admin/plugin-install.php?tab=upload9211.9226.9331.53
Favorites /wp-admin/plugin-install.php?tab=favorites1,0341.9930.2229.51

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
3 plugin tags: upload plugins, administration, installation

plugin-installer-speedup/plugin-installer-speedup.php Passed 13 tests

"Plugin Installer Speedup" version 0.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
109 characters long description:
Speedups: dont't load featured plugins, make Search Plugins button visible, skip plugin install confirmation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected92 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1331387
JavaScript1285

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
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 were not PNG files found in your plugin