84% reinstall-plugins

Code Review | Reinstall Plugins

WordPress plugin Reinstall Plugins scored84%from 54 tests.

About plugin

  • Plugin page: reinstall-plugins
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.0-5.2.3
  • WordPress version: 6.3.1
  • First release: Aug 23, 2016
  • Latest release: Oct 15, 2019
  • Number of updates: 5
  • Update frequency: every 229.6 days
  • Top authors: alex-ye (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /5,637 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.68ms] Passed 4 tests

An overview of server-side resources used by Reinstall Plugins
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.70 ▼2.07
Dashboard /wp-admin3.31 ▼0.0348.28 ▼16.30
Posts /wp-admin/edit.php3.36 ▲0.0049.04 ▼3.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.77 ▼21.06
Media Library /wp-admin/upload.php3.23 ▲0.0037.43 ▼0.20

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Reinstall Plugins
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.23 ▲0.031.72 ▼0.5848.79 ▲4.99
Dashboard /wp-admin2,192 ▲155.62 ▼0.0390.20 ▼14.0937.72 ▼3.39
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0240.18 ▲4.6535.27 ▼2.16
Add New Post /wp-admin/post-new.php1,526 ▼923.27 ▲5.00670.71 ▲4.7455.00 ▼14.21
Media Library /wp-admin/upload.php1,400 ▲34.15 ▼0.01109.28 ▲13.7147.99 ▲7.94

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ReinstallPlugins\\add_filter() in wp-content/plugins/reinstall-plugins/main.php:17

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: upload, plugins, plugin

reinstall-plugins/main.php 92% from 13 tests

The main file in "Reinstall Plugins" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("reinstall-plugins.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP142012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.33
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
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG files were detected