Benchmarks
Plugin footprint 82% 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.75MB] [CPU: ▼330.28ms] 75% from 4 tests
An overview of server-side resources used by Brainity: Prospecting and Retargeting Ads on Autopilot
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,188.33ms on /wp-admin/admin.php?page=brainity-go-to-manager)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.39 | 60.16 ▲8.69 |
Dashboard /wp-admin | 3.52 ▲0.11 | 22.09 ▼10.89 |
Posts /wp-admin/edit.php | 3.64 ▼0.00 | 25.91 ▼10.18 |
Add New Post /wp-admin/post-new.php | 3.57 ▼3.40 | 30.96 ▼1,296.58 |
Media Library /wp-admin/upload.php | 3.58 ▲0.29 | 21.60 ▼3.46 |
Brainity /wp-admin/admin.php?page=brainity-go-to-manager | 3.71 | 1,188.33 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_brainity |
New WordPress options |
---|
brainity_db_version |
Browser metrics Passed 4 tests
Checking browser requirements for Brainity: Prospecting and Retargeting Ads on Autopilot
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲29 | 16.07 ▲0.10 | 5.88 ▲0.04 | 2.10 ▼0.61 |
Dashboard /wp-admin | 2,911 ▲50 | 6.18 ▼0.03 | 122.25 ▼16.90 | 170.26 ▲9.10 |
Posts /wp-admin/edit.php | 2,707 ▲13 | 3.25 ▲0.02 | 63.00 ▼1.22 | 142.72 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,794 ▲133 | 22.14 ▲5.42 | 420.26 ▼4.10 | 194.15 ▲34.16 |
Media Library /wp-admin/upload.php | 1,716 ▲18 | 5.50 ▼0.04 | 125.16 ▼18.38 | 213.70 ▲22.25 |
Brainity /wp-admin/admin.php?page=brainity-go-to-manager | 972 | 2.40 | 51.62 | 73.18 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- brainity_db_version
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=brainity-go-to-manager
- > Notice in wp-content/plugins/brainity-boost-ads/brainity.php+406
Trying to get property 'pixel_id' of non-object
- > GET request to /wp-admin/admin.php?page=brainity-go-to-manager
- > Notice in wp-content/plugins/brainity-boost-ads/brainity.php+312
Trying to get property 'sso_token' of non-object
- > GET request to /wp-admin/admin.php?page=brainity-go-to-manager
- > Warning in wp-content/plugins/brainity-boost-ads/brainity.php+312
Cannot modify header information - headers already sent by (output started at wp-admin/includes/misc.php:1013)
SRP Passed 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
The SRP test was a success
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 90% 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: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in brainity-boost-ads/assets to your readme.txt
brainity-boost-ads/brainity.php 85% from 13 tests
The primary PHP file in "Brainity: Prospecting and Retargeting Ads on Autopilot" version 1.0.14 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("brainity-boost-ads.php" instead of "brainity.php")
- Description: Keep the plugin description shorter than 140 characters (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,365 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 370 | 409 | 2,207 |
CSS | 2 | 10 | 8 | 71 |
SVG | 1 | 18 | 0 | 53 |
JavaScript | 1 | 5 | 1 | 34 |
PHP code Passed 2 tests
An overview 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.38 |
Average class complexity | 46.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 126 | |
▷ Static methods | 74 | 58.73% |
▷ Public methods | 118 | 93.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 6.35% |
Functions | 9 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 9 | 100.00% |
Constants | 51 | |
▷ Global constants | 6 | 11.76% |
▷ Class constants | 45 | 88.24% |
▷ Public constants | 45 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.88MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/facebook.png | 16.01KB | 6.31KB | ▼ 60.55% |
assets/img/brainity-logo.png | 16.90KB | 6.16KB | ▼ 63.56% |
assets/screenshot-5.png | 147.77KB | 45.90KB | ▼ 68.94% |
assets/screenshot-4.png | 161.58KB | 66.29KB | ▼ 58.97% |
assets/icon-256x256.png | 19.92KB | 6.94KB | ▼ 65.15% |