Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.20ms] Passed 4 tests
A check of server-side resources used by Masoffer Promotion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 48.51 ▲5.54 |
Dashboard /wp-admin | 3.37 ▲0.02 | 48.85 ▼16.20 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 48.90 ▼2.12 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 87.43 ▼12.82 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.27 ▲2.34 |
MasOffer Promotion /wp-admin/options-general.php?page=masoffer-promotion-official | 3.26 | 31.25 |
Server storage [IO: ▲2.41MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Masoffer Promotion
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.34 ▼0.03 | 2.02 ▲0.20 | 44.24 ▲1.04 |
Dashboard /wp-admin | 2,199 ▲18 | 5.48 ▼0.19 | 85.56 ▼21.63 | 41.47 ▲1.79 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.01 | 33.11 ▼6.50 | 39.71 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.08 ▲0.03 | 684.49 ▼7.85 | 56.09 ▲2.24 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.17 ▼0.03 | 106.30 ▼22.45 | 46.44 ▼1.96 |
MasOffer Promotion /wp-admin/options-general.php?page=masoffer-promotion-official | 968 | 1.99 | 23.55 | 38.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% 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)
The smoke test was a success, however most plugin functionality was not tested
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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/masoffer-promotion/views/promotions.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/masoffer-promotion/views/admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/masoffer-promotion/masoffer-promotion.php:20
- > PHP Notice
Undefined variable: take in wp-content/plugins/masoffer-promotion/views/promotions.php on line 2
- > PHP Notice
Undefined variable: orderby in wp-content/plugins/masoffer-promotion/views/promotions.php on line 2
- > PHP Notice
Undefined variable: coupon in wp-content/plugins/masoffer-promotion/views/promotions.php on line 2
- > PHP Notice
Undefined variable: offerid in wp-content/plugins/masoffer-promotion/views/promotions.php on line 2
- > PHP Notice
Undefined variable: ordertype in wp-content/plugins/masoffer-promotion/views/promotions.php on line 2
- > PHP Notice
Undefined variable: category in wp-content/plugins/masoffer-promotion/views/promotions.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=masoffer-promotion-official
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=masoffer-promotion-official 212 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: marketing, affiliate
masoffer-promotion/masoffer-promotion.php Passed 13 tests
The entry point to "Masoffer Promotion" version 2.1.4 is a PHP file that has certain tags in its header comment area
46 characters long description:
Plugin hỗ trợ hiển thị mã giảm giá
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 plugin961 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 48 | 28 | 325 |
JavaScript | 2 | 18 | 2 | 254 |
CSS | 2 | 2 | 7 | 216 |
Sass | 1 | 4 | 0 | 166 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/fav_mo64.png | 3.87KB | 2.28KB | ▼ 41.22% |
images/logo_post.png | 6.30KB | 6.30KB | 0.00% |
images/mo2-300x51.png | 12.21KB | 6.37KB | ▼ 47.81% |
fav_mo64.png | 3.87KB | 2.28KB | ▼ 41.22% |
mo2-300x51.png | 12.21KB | 6.37KB | ▼ 47.81% |