57% quickwp

Code Review | QuickWP

WordPress plugin QuickWP scored57%from 54 tests.

About plugin

  • Plugin page: quickwp
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Apr 11, 2017
  • Latest release: Apr 6, 2017
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: SacredClown (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /462 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.79MB] [CPU: ▼35.63ms] Passed 4 tests

This is a short check of server-side resources used by QuickWP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4640.93 ▲0.52
Dashboard /wp-admin3.16 ▼0.1919.18 ▼34.78
Posts /wp-admin/edit.php3.16 ▼0.2019.46 ▼19.87
Add New Post /wp-admin/post-new.php3.16 ▼2.7320.16 ▼75.87
Media Library /wp-admin/upload.php3.16 ▼0.0721.30 ▼11.99
Create file /wp-admin/admin.php?page=create-file3.1618.97
Browse QuickWP files /wp-admin/admin.php?page=browse-files3.1620.45
QuickWP /wp-admin/admin.php?page=quickwp3.1619.26

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for QuickWP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.61 ▼1.051.64 ▼0.2741.31 ▼5.21
Dashboard /wp-admin2,244 ▲625.88 ▲0.0497.14 ▼8.7137.62 ▼1.41
Posts /wp-admin/edit.php2,130 ▲412.06 ▲0.0747.71 ▲5.4635.78 ▼2.05
Add New Post /wp-admin/post-new.php1,555 ▲4119.04 ▲1.40591.92 ▼40.8348.87 ▼1.17
Media Library /wp-admin/upload.php1,426 ▲354.22 ▼0.0697.78 ▲0.7043.97 ▲2.18
Create file /wp-admin/admin.php?page=create-file8262.0524.1634.35
Browse QuickWP files /wp-admin/admin.php?page=browse-files2,4137.27203.12235.11
QuickWP /wp-admin/admin.php?page=quickwp8492.0222.1936.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/quickwp/quickwp.php+68
    Undefined index: quickwp_plugins
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=quickwp
    • > Notice in wp-content/plugins/quickwp/quickwp.php+68
    Undefined index: quickwp_plugins
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=quickwp
    • > Warning in wp-content/plugins/quickwp/quickwp.php+71
    count(): Parameter must be an array or an object that implements Countable
    • > GET request to /wp-admin/admin.php?page=create-file
    • > Deprecated in wp-content/plugins/quickwp/inc/quickwp.class.php+131
    Non-static method QuickWP\Plugin_Create::get_plugin_names() should not be called statically

SRP 0% 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 fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/quickwp/quickwp.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/quickwp/inc/class-tgm-plugin-activation.php:2109

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=browse-files
    • > Javascript (severe) in unknown
    http://cdn.iubenda.com/cs/tcf/stub.js 0:1328 Uncaught DOMException: Blocked a frame with origin "http://www.lingulo.com" from accessing a cross-origin frame.
    • > GET request to /wp-admin/admin.php?page=browse-files
    • > Javascript (severe) in unknown
    http://www.lingulo.com/wp-content/plugins/contact-form-7/modules/recaptcha/script.js?ver=5.3.2 27:2 Uncaught ReferenceError: grecaptcha is not defined

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: installation, fast, quickwp, useful, quick...

quickwp/quickwp.php Passed 13 tests

This is the main PHP file of "QuickWP" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
QuickWP is a plugin to quickly install a collection of plugins on a WordPress install

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,623 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP55241,6272,177
CSS1143379
JavaScript11067

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity37.60
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes220.00%
▷ Concrete classes880.00%
▷ Final classes00.00%
Methods118
▷ Static methods65.08%
▷ Public methods9580.51%
▷ Protected methods2319.49%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin