10% install-profiles

Code Review | WP Install Profiles

WordPress plugin WP Install Profiles scored10%from 54 tests.

About plugin

  • Plugin page: install-profiles
  • Plugin version: 3.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.6
  • WordPress version: 6.3.1
  • First release: Oct 15, 2011
  • Latest release: May 22, 2013
  • Number of updates: 33
  • Update frequency: every 17.8 days
  • Top authors: rockgod100 (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

700+ active /18,990 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/install-profiles/wpip.php+49
    Use of undefined constant ZipArchive - assumed 'ZipArchive' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.97ms] Passed 4 tests

An overview of server-side resources used by WP Install Profiles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0836.79 ▼3.41
Dashboard /wp-admin3.40 ▲0.0949.12 ▼1.12
Posts /wp-admin/edit.php3.45 ▲0.0944.41 ▼3.56
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.55 ▼11.80
Media Library /wp-admin/upload.php3.32 ▲0.0943.09 ▲9.38
Bulk Install Profiles /wp-admin/plugins.php?page=installation_profiles3.3029.40

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Install Profiles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.10 ▼0.251.70 ▼0.0044.63 ▲2.60
Dashboard /wp-admin2,199 ▲225.63 ▼0.0286.24 ▼4.8442.51 ▲2.99
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0436.44 ▲0.4037.49 ▲0.48
Add New Post /wp-admin/post-new.php1,529 ▲323.66 ▲0.60654.21 ▼7.8350.27 ▼15.04
Media Library /wp-admin/upload.php1,407 ▲104.20 ▲0.0297.35 ▼5.8440.18 ▼8.14
Bulk Install Profiles /wp-admin/plugins.php?page=installation_profiles1,1272.1025.1440.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/install-profiles/wpip.php:38

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/plugins.php?page=installation_profiles
    • > Javascript (severe) in unknown
    /wp-content/plugins/install-profiles/js/jquery.simplemodal.1.4.1.min.js?ver=6.3.1 7:29 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')

Optimizations

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:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugins -> Bulk Download Profiles), #2 (Create and save your install profiles online - [http://plugins.ancillaryfactory.com](http://plugins.ancillaryfactory.com)), #3 (Import online profiles with your WPIP username)
You can look at the official readme.txt

install-profiles/wpip.php 92% from 13 tests

The main PHP file in "WP Install Profiles" ver. 3.4.1 adds more information about the plugin and also serves as the entry point for this 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 ("install-profiles.php" instead of "wpip.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected721 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP337465542
CSS123793
JavaScript3383886

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png21.43KB14.50KB▼ 32.35%
plugin-url.png9.77KB5.08KB▼ 48.06%