83% wp-quick-provision

Code Review | WP Quick Provision

WordPress plugin WP Quick Provision scored83%from 54 tests.

About plugin

  • Plugin page: wp-quick-provision
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 9, 2019
  • Latest release: Mar 4, 2021
  • Number of updates: 36
  • Update frequency: every 16.8 days
  • Top authors: HasinHayder (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

40+ active /2,469 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.02MB] [CPU: ▼3.63ms] Passed 4 tests

Analyzing server-side resources used by WP Quick Provision
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.45 ▼3.41
Dashboard /wp-admin3.32 ▲0.0251.38 ▲1.22
Posts /wp-admin/edit.php3.37 ▲0.0250.97 ▲1.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.79 ▼10.86
Media Library /wp-admin/upload.php3.24 ▲0.0134.92 ▼1.45
Quick Provision /wp-admin/tools.php?page=wpqp3.2333.60

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Quick Provision
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.32 ▼1.341.89 ▼0.2347.13 ▲3.75
Dashboard /wp-admin2,207 ▲155.76 ▲0.86109.30 ▼0.3736.68 ▼6.40
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0038.70 ▼0.9534.85 ▲1.31
Add New Post /wp-admin/post-new.php1,536 ▲2223.16 ▲5.67693.07 ▲24.2851.20 ▼3.56
Media Library /wp-admin/upload.php1,392 ▲74.29 ▲0.11100.43 ▼2.1745.80 ▼4.99
Quick Provision /wp-admin/tools.php?page=wpqp7982.0627.7435.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-quick-provision/class.wpqp-table.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-quick-provision/class.wpqp-table.php on line 7
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-quick-provision/class.wpqp-table.php on line 7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-quick-provision/class.wpqp-table.php on line 7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-quick-provision/class.wpqp-table.php on line 7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-quick-provision/class.wpqp-table.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Version not formatted correctly
The official readme.txt is a good inspiration

wp-quick-provision/wp-quick-provision.php 85% from 13 tests

The main file in "WP Quick Provision" v. 3.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 434 characters long)
  • Domain Path: The domain path folder does not exist ("/languages/")

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
There were no executable files found in this plugin572 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP39582475
CSS116397

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions853.33%
▷ Anonymous functions746.67%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin