Benchmarks
Plugin footprint 48% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.01ms] Passed 4 tests
A check of server-side resources used by HasOffers
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.49 ▼6.70 |
Dashboard /wp-admin | 3.32 ▼0.03 | 51.97 ▼22.81 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.28 ▼1.86 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.97 ▼8.67 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.65 ▲1.56 |
HasOffers Settings /wp-admin/options-general.php?page=wpho-plugin-setting | 3.21 | 34.54 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables |
---|
wpho_mortgage |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
HasOffers: 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,827 ▲81 | 13.25 ▼1.11 | 3.29 ▲1.55 | 40.32 ▼2.84 |
Dashboard /wp-admin | 2,228 ▲22 | 4.87 ▼0.18 | 101.58 ▼2.04 | 40.44 ▼1.80 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.02 ▼0.02 | 33.63 ▼7.33 | 35.82 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,534 ▲3 | 23.28 ▲0.14 | 691.05 ▲5.08 | 55.47 ▲0.34 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.21 ▲0.03 | 95.85 ▼10.31 | 46.83 ▲3.41 |
HasOffers Settings /wp-admin/options-general.php?page=wpho-plugin-setting | 877 | 2.03 | 24.68 | 27.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/hasoffers/include/functions.php+70
Undefined index: wpho_register_nonce
- This plugin does not fully uninstall, leaving 1 table in the database
- wpho_mortgage
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% 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 no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hasoffers/include/functions.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: px api, affiliate marketing, hasoffers, px
hasoffers/hasoffers.php Passed 13 tests
This is the main PHP file of "HasOffers" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
130 characters long description:
HasOffers gives a thousands of businesses around the world and the ability to track and manage their own publisher relashionships.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin545 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 31 | 11 | 463 |
JavaScript | 3 | 3 | 3 | 61 |
CSS | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin