84% allow-reinstalls

Code Review | allow-reinstalls

WordPress plugin allow-reinstalls scored84%from 54 tests.

About plugin

  • Plugin page: allow-reinstalls
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 23, 2016
  • Latest release: Nov 8, 2023
  • Number of updates: 21
  • Update frequency: every 135.5 days
  • Top authors: bobbingwide (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,418 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
Installer ran successfully

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

A check of server-side resources used by allow-reinstalls
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.47 ▼0.69
Dashboard /wp-admin3.31 ▼0.0349.24 ▼12.67
Posts /wp-admin/edit.php3.36 ▲0.0044.77 ▼8.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.10 ▼22.99
Media Library /wp-admin/upload.php3.23 ▲0.0032.90 ▼1.55

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for allow-reinstalls
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.32 ▼0.061.81 ▲0.0542.34 ▼1.32
Dashboard /wp-admin2,198 ▲205.65 ▲0.0390.61 ▼24.6344.14 ▲0.16
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0438.82 ▼1.9233.40 ▼2.80
Add New Post /wp-admin/post-new.php1,526 ▼1023.94 ▲0.80678.63 ▼16.7849.48 ▼12.60
Media Library /wp-admin/upload.php1,400 ▼04.27 ▲0.0895.89 ▼23.3140.08 ▼8.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/allow-reinstalls/allow-reinstalls.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Upload fails when allow-reinstalls is already installed but inactive), #2 (Try again after activating the allow-reinstalls plugin), #3 (Upload succeeds this time.)
You can take inspiration from this readme.txt

allow-reinstalls/allow-reinstalls.php Passed 13 tests

The main file in "allow-reinstalls" v. 0.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
Allow re-installation of plugins and themes by upload

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18446

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces0
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin