78% wp-quick-setup

Code Review | WP Quick Setup

WordPress plugin WP Quick Setup scored 78% from 54 tests.

About plugin

  • Plugin page: wp-quick-setup
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 25, 2015
  • Latest release: Jun 7, 2015
  • Number of updates: 16
  • Update frequency: every 7.7 days
  • Top authors: AntonHoelstad (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 4,924 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼5.25ms] Passed 4 tests

This is a short check of server-side resources used by WP Quick Setup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.43 ▼2.98
Dashboard /wp-admin3.32 ▲0.0249.56 ▼1.88
Posts /wp-admin/edit.php3.37 ▲0.0149.31 ▼2.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.09 ▼13.19
Media Library /wp-admin/upload.php3.24 ▲0.0134.75 ▲0.26
Wp Quick Setup /wp-admin/options-general.php?page=wes-settings3.4032.48

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP Quick Setup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.29 ▼1.091.68 ▲0.0742.14 ▼4.18
Dashboard /wp-admin2,210 ▲224.86 ▲0.01104.46 ▲0.1637.49 ▼2.71
Posts /wp-admin/edit.php2,096 ▲72.03 ▲0.0239.59 ▲0.9635.11 ▲0.40
Add New Post /wp-admin/post-new.php1,545 ▲3118.47 ▲0.99623.51 ▼75.3953.75 ▼8.44
Media Library /wp-admin/upload.php1,392 ▲104.28 ▲0.0595.96 ▼10.5942.40 ▼2.14
Wp Quick Setup /wp-admin/options-general.php?page=wes-settings4,0992.6144.36112.71

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-quick-setup/wp-quick-setup.php
    • > /wp-content/plugins/wp-quick-setup/views/settings.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-quick-setup/views/settings.php:76
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-quick-setup/ajax.php:43

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 uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (The quick install options), #2 (Front page, post page, read settings and timezone), #3 (Date and time format & create blank pages and categories), #4 (Install and activate popular plugins), #5 (Install plugins and themes from URL)
You can take inspiration from this readme.txt

wp-quick-setup/wp-quick-setup.php Passed 13 tests

The main PHP file in "WP Quick Setup" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
128 characters long description:
This plugin makes it as easy as possible to start up a new WordPress blog. Fix all the common issues with one click of a button.

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
There were no executable files found in this plugin6,056 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61,1701,0934,089
PHP470311,177
SVG100751
CSS292439

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.31MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png95.96KB43.05KB▼ 55.13%
screenshot-2.png55.10KB23.27KB▼ 57.77%
screenshot-5.png31.45KB14.64KB▼ 53.47%
screenshot-3.png66.28KB27.28KB▼ 58.84%
screenshot-4.png69.47KB28.81KB▼ 58.53%