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.07MB] [CPU: ▼7.28ms] Passed 4 tests
Server-side resources used by Useinfluence
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.06 ▼2.61 |
Dashboard /wp-admin | 3.37 ▲0.06 | 48.51 ▼4.24 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.22 ▼11.65 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 95.29 ▼9.42 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.86 ▼3.81 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 33 new files
Database: 1 new table, 6 new options
New tables |
---|
tracking_id |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Useinfluence
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲157 | 13.64 ▼0.74 | 7.25 ▲5.06 | 42.88 ▼2.18 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▲0.03 | 99.17 ▼10.47 | 88.52 ▲42.50 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.00 ▲0.03 | 40.77 ▼2.27 | 36.99 ▼3.37 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.24 ▼5.02 | 726.12 ▼18.39 | 73.48 ▲5.43 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.21 ▲0.04 | 108.83 ▼6.67 | 74.79 ▲24.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- tracking_id
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/useinfluence/admin/partials/useinfluence-admin-display.php
- > /wp-content/plugins/useinfluence/public/partials/useinfluence-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/useinfluence/includes/useinfluence_send_wooco_data.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: promotion, marketing, social proof, notifications, woocommerce...
useinfluence/index.php 92% from 13 tests
The main PHP file in "Useinfluence" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("useinfluence.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected452 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 150 | 558 | 358 |
Markdown | 1 | 59 | 0 | 88 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 9 | |
▷ Named functions | 9 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.64MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/recent_latest_8Feb.png | 130.33KB | 45.68KB | ▼ 64.95% |
assets/live viewer3.png | 36.86KB | 16.72KB | ▼ 54.65% |
assets/group activity.png | 31.79KB | 16.21KB | ▼ 49.01% |
assets/Influence-trackingId.png | 107.09KB | 38.88KB | ▼ 63.70% |
assets/plg-icon.png | 1.21KB | 0.42KB | ▼ 64.91% |