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.12MB] [CPU: ▼7.23ms] Passed 4 tests
An overview of server-side resources used by REGA Verifier
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▼0.60 | 20.09 ▼15.68 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.12 ▼5.11 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.63 ▲2.85 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 87.81 ▼10.04 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.51 ▲1.92 |
REGA /wp-admin/options-general.php?page=rega-verifier | 3.23 | 28.76 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_rega_input_widget |
widget_rega_status_widget |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for REGA Verifier
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,452 ▼294 | 13.50 ▼0.88 | 2.98 ▲1.38 | 16.73 ▼24.89 |
Dashboard /wp-admin | 2,212 ▲24 | 4.86 ▼1.03 | 110.04 ▲10.84 | 41.98 ▼1.16 |
Posts /wp-admin/edit.php | 2,098 ▲12 | 2.01 ▼0.01 | 41.91 ▲7.73 | 33.78 ▼0.45 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.16 ▲5.16 | 628.82 ▲6.20 | 69.64 ▲14.56 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.17 ▼0.03 | 96.00 ▼1.10 | 46.48 ▲3.88 |
REGA /wp-admin/options-general.php?page=rega-verifier | 878 | 2.05 | 22.88 | 64.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_rega_status_widget
- widget_theysaidso_widget
- widget_rega_input_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/rega-verifier/downloadme.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/rega-ajax-verifier.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/rega-ajax-updater.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rega-verifier/downloadhook.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/rega-ajax-verifier.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rega-verifier/template/testwp.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/load_jquery_and_bootstrap.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/rega-reset.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rega-verifier/rega-hook.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/rega-widget-input.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rega-verifier/rega-settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: real state, buy, sell, landloard, house...
rega-verifier/index.php 92% from 13 tests
"REGA Verifier" version 0.151's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rega-verifier.php" instead of "index.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
No dangerous file extensions were detected996 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 320 | 195 | 938 |
Markdown | 2 | 17 | 0 | 44 |
CSS | 2 | 4 | 6 | 13 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/logo.png | 105.61KB | 34.99KB | ▼ 66.87% |