Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.02ms] Passed 4 tests
This is a short check of server-side resources used by pVerify
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.30 ▼2.20 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.67 ▲2.18 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.10 ▼0.21 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 89.69 ▼3.50 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.30 ▲1.83 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_pverify_pl |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
pVerify: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲74 | 14.44 ▲0.03 | 1.79 ▼0.05 | 39.30 ▼1.85 |
Dashboard /wp-admin | 2,217 ▲37 | 5.60 ▼0.07 | 89.50 ▼0.35 | 39.31 ▼1.08 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.02 ▲0.01 | 38.96 ▼2.29 | 34.33 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 22.98 ▼0.32 | 593.64 ▼25.56 | 70.87 ▼2.45 |
Media Library /wp-admin/upload.php | 1,416 ▲22 | 4.27 ▲0.06 | 102.01 ▲3.41 | 40.65 ▼0.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
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)
Even though everything seems fine, this is not an exhaustive test
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
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pverify/includes/pVerify-db-config.php
- > /wp-content/plugins/pverify/includes/view/admin/pVerify-auth.php
- > /wp-content/plugins/pverify/includes/view/shortcodes/eligibility_widget.php
- > /wp-content/plugins/pverify/includes/pVerify_Main.php
- > /wp-content/plugins/pverify/includes/view/shortcodes/estimate_widget.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: err_msg in wp-content/plugins/pverify/includes/view/shortcodes/estimate_widget.php on line 9
- > PHP Notice
Undefined variable: err_msg in wp-content/plugins/pverify/includes/view/shortcodes/eligibility_widget.php on line 9
- > PHP Notice
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 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Please fix this invalid URI: "later"
- License uri: Please fix this invalid URI: "later"
pverify/pVerify.php 92% from 13 tests
The main PHP script in "pVerify" version 0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pverify.php" instead of "pVerify.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin481 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 94 | 73 | 319 |
CSS | 2 | 0 | 0 | 98 |
Markdown | 1 | 21 | 0 | 38 |
JavaScript | 1 | 7 | 0 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 5 | 26.32% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 1 | 5.26% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected