Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼302.08ms] Passed 4 tests
Server-side resources used by Visitorsproof - a social proof and FOMO plugin, recent sales popup notification
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.08 | 57.90 ▼0.34 |
Dashboard /wp-admin | 3.45 ▲0.04 | 35.89 ▲2.65 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 37.34 ▲1.82 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 97.43 ▼1,203.64 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 24.70 ▼6.14 |
Reports /wp-admin/admin.php?page=visitors-proof-reports | 3.50 | 24.63 |
Contact Form 7 /wp-admin/admin.php?page=visitors-proof-cf7 | 3.39 | 23.73 |
Support /wp-admin/admin.php?page=visitors-proof-support | 3.32 | 21.69 |
Settings /wp-admin/admin.php?page=visitors-proof-settings | 3.37 | 23.41 |
Custom Notifications /wp-admin/admin.php?page=visitors-proof-custom-notifications | 3.38 | 24.54 |
All Notifications /wp-admin/admin.php?page=visitors-proof-notifications | 3.46 | 32.90 |
Server storage [IO: ▲1.40MB] [DB: ▲0.15MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 51 new files
Database: 6 new tables, 6 new options
New tables |
---|
wp_visitors_proof_notifications |
wp_visitors_proof_ips |
wp_visitors_proof_actions |
wp_visitors_proof_visits |
wp_visitors_proof_icons |
wp_visitors_proof_integrations |
New WordPress options |
---|
visitors_proof_settings |
visitors_proof_enabled |
visitors_proof_license |
visitors_proof_site_domain |
visitors_proof_site_id |
visitors_proof_version |
Browser metrics Passed 4 tests
A check of browser resources used by Visitorsproof - a social proof and FOMO plugin, recent sales popup notification
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,097 ▲353 | 16.38 ▲0.60 | 14.95 ▲8.25 | 20.94 ▲18.03 |
Dashboard /wp-admin | 2,949 ▲91 | 6.16 ▼0.02 | 131.34 ▼4.34 | 166.52 ▲8.74 |
Posts /wp-admin/edit.php | 2,751 ▲60 | 3.28 ▲0.04 | 63.76 ▲0.18 | 145.06 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,824 ▲164 | 20.36 ▲3.96 | 408.04 ▼1.59 | 193.18 ▲35.46 |
Media Library /wp-admin/upload.php | 1,742 ▲44 | 5.59 ▲0.17 | 128.11 ▼8.64 | 200.62 ▲6.73 |
Reports /wp-admin/admin.php?page=visitors-proof-reports | 1,378 | 2.64 | 55.59 | 150.14 |
Contact Form 7 /wp-admin/admin.php?page=visitors-proof-cf7 | 1,221 | 2.78 | 58.58 | 102.21 |
Support /wp-admin/admin.php?page=visitors-proof-support | 1,152 | 2.64 | 53.78 | 142.71 |
Settings /wp-admin/admin.php?page=visitors-proof-settings | 2,122 | 3.35 | 70.59 | 154.67 |
Custom Notifications /wp-admin/admin.php?page=visitors-proof-custom-notifications | 3,474 | 3.84 | 97.53 | 168.69 |
All Notifications /wp-admin/admin.php?page=visitors-proof-notifications | 4,677 | 4.33 | 150.43 | 161.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.15MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables detected upon uninstall: 6 tables
- wp_visitors_proof_actions
- wp_visitors_proof_integrations
- wp_visitors_proof_icons
- wp_visitors_proof_ips
- wp_visitors_proof_visits
- wp_visitors_proof_notifications
- Zombie WordPress options detected upon uninstall: 6 options
- visitors_proof_version
- visitors_proof_license
- visitors_proof_site_id
- visitors_proof_settings
- visitors_proof_enabled
- visitors_proof_site_domain
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/visitorsproof/visitors-proof.php
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant VISITORS_PROOF_NAME - assumed 'VISITORS_PROOF_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/visitorsproof/inc/page_support.php on line 3
- > PHP Warning
Use of undefined constant VISITORS_PROOF_PAGE_SETTINGS - assumed 'VISITORS_PROOF_PAGE_SETTINGS' (this will throw an Error in a future version of PHP) in wp-content/plugins/visitorsproof/inc/page_settings.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/visitorsproof/inc/pages.php:3
- > 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/visitorsproof/inc/contact-form-7.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/visitorsproof/inc/ajax.php:389
- > PHP Notice
Undefined variable: vpchr in wp-content/plugins/visitorsproof/inc/page_reports.php on line 43
- > 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/visitorsproof/inc/custom-notifications.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/visitorsproof/inc/page_all_notifications.php:2
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/visitorsproof/inc/page_all_notifications.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_visitors_proof_cf7_active() in wp-content/plugins/visitorsproof/inc/page_cf7.php:2
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=visitors-proof-notifications
- > Javascript (severe) in unknown
https://platform.linkedin.com/xdoor/scripts/in.js 13:107371 Uncaught Error: [Messenger] Required property 'origin' was not provided
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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 to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in visitorsproof/assets to your readme.txt
visitorsproof/visitors-proof.php 92% from 13 tests
The principal PHP file in "Visitorsproof - a social proof and FOMO plugin, recent sales popup notification" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("visitorsproof.php" instead of "visitors-proof.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
Good job! No executable or dangerous file extensions detected10,604 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 926 | 373 | 4,885 |
CSS | 6 | 56 | 75 | 3,080 |
PHP | 14 | 194 | 29 | 2,638 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 39.67 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 10 | 14.49% |
▷ Public methods | 69 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 24 | |
▷ Global constants | 24 | 100.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
10 PNG files occupy 0.49MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/necklace.png | 13.72KB | 4.20KB | ▼ 69.36% |
assets/demo-reports.png | 369.55KB | 129.05KB | ▼ 65.08% |
assets/drags.png | 3.96KB | 1.14KB | ▼ 71.19% |
assets/canon-camera.png | 15.75KB | 5.47KB | ▼ 65.28% |
assets/google-pixel.png | 24.52KB | 6.57KB | ▼ 73.20% |