90% query-monitor-givewp

Code Review | Query Monitor GiveWP

WordPress plugin Query Monitor GiveWP scored90%from 54 tests.

About plugin

  • Plugin page: query-monitor-givewp
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 13, 2018
  • Latest release: Aug 13, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: tw2113 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /824 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
Installer ran successfully

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

Server-side resources used by Query Monitor GiveWP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.90 ▼0.44
Dashboard /wp-admin3.31 ▼0.0450.77 ▼10.72
Posts /wp-admin/edit.php3.36 ▲0.0049.38 ▼3.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.39 ▼17.99
Media Library /wp-admin/upload.php3.23 ▲0.0040.34 ▲2.19

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Query Monitor GiveWP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.141.67 ▲0.0243.82 ▲1.69
Dashboard /wp-admin2,195 ▲185.62 ▼0.0184.94 ▼5.2442.21 ▼0.26
Posts /wp-admin/edit.php2,103 ▲31.94 ▼0.0436.42 ▼4.4036.56 ▼2.37
Add New Post /wp-admin/post-new.php1,528 ▲223.24 ▼0.52670.15 ▲38.1353.44 ▼0.32
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.03111.04 ▲9.4546.65 ▲0.81

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

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

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: debugging, donation, give, wordpress donation plugin, donations...

query-monitor-givewp/query-monitor-givewp.php Passed 13 tests

The main file in "Query Monitor GiveWP" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
27 characters long description:
Add GiveWP to Query Monitor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected357 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP676281310
Markdown210032
JSON10015

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity6.20
▷ Minimum class complexity3.00
▷ Maximum class complexity16.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.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 are no PNG files in this plugin