Benchmarks
Plugin footprint 83% 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.18MB] [CPU: ▼391.21ms] Passed 4 tests
Server-side resources used by LiveMarket
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.26 | 77.39 ▲18.44 |
Dashboard /wp-admin | 3.61 ▲0.20 | 34.74 ▼1.15 |
Posts /wp-admin/edit.php | 3.84 ▲0.20 | 41.98 ▲3.08 |
Add New Post /wp-admin/post-new.php | 7.08 ▲0.12 | 101.19 ▼1,520.73 |
Media Library /wp-admin/upload.php | 3.49 ▲0.19 | 25.21 ▼46.05 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_livemarket_promotions |
Browser metrics Passed 4 tests
An overview of browser requirements for LiveMarket
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,980 ▲226 | 16.55 ▲0.88 | 10.55 ▲2.17 | 5.11 ▲2.53 |
Dashboard /wp-admin | 2,918 ▲58 | 6.08 ▼0.02 | 134.29 ▲10.09 | 194.07 ▲27.81 |
Posts /wp-admin/edit.php | 2,715 ▲21 | 3.12 ▼0.11 | 64.04 ▲1.10 | 155.70 ▲5.50 |
Add New Post /wp-admin/post-new.php | 1,681 ▼77 | 16.32 ▼5.07 | 411.73 ▼61.91 | 200.36 ▲37.33 |
Media Library /wp-admin/upload.php | 1,716 ▲18 | 5.50 ▼0.04 | 153.08 ▲0.82 | 217.31 ▲6.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_livemarket_promotions
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/livemarket/lm-ajax.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/livemarket/lm-flyout.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/livemarket/livemarket.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/livemarket/lm-functions.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/livemarket/lm-shortcodes.php:104
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/livemarket/lm-widgets.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: ads, livemarket, advertisement, advertise, live market...
livemarket/livemarket.php Passed 13 tests
The principal PHP file in "LiveMarket" v. 1.7.3 is loaded by WordPress automatically on each request
82 characters long description:
Create a new ad revenue stream with promotions your audience actually wants to see
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,412 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 330 | 276 | 943 |
CSS | 2 | 50 | 0 | 354 |
JavaScript | 2 | 16 | 1 | 115 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/livemarket-16x16.png | 1.50KB | 0.56KB | ▼ 62.43% |
images/livemarket-64x64.png | 6.46KB | 2.54KB | ▼ 60.71% |
images/LiveMarket_green_v2_hi-2.png | 5.67KB | 1.70KB | ▼ 69.94% |
images/livemarket-logo.png | 3.23KB | 1.97KB | ▼ 38.89% |