Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.88ms] Passed 4 tests
Server-side resources used by Heraldbee - the simple advertising app
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.38 ▼2.17 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.84 ▼1.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.69 ▼2.99 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.45 ▼17.30 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.14 ▲1.63 |
Server storage [IO: ▲1.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Heraldbee - the simple advertising app: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.25 ▼1.11 | 1.83 ▼0.35 | 48.85 ▲0.49 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▼0.24 | 104.78 ▼0.64 | 41.15 ▼10.01 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.01 | 37.27 ▼1.77 | 31.87 ▼3.30 |
Add New Post /wp-admin/post-new.php | 1,519 ▼24 | 23.09 ▲4.90 | 683.93 ▲63.58 | 56.75 ▲6.98 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.20 ▲0.04 | 96.12 ▼5.15 | 42.47 ▼1.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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 items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/heraldbee/class-wc-heraldbee.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/heraldbee/pages/getstarted.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/heraldbee/class-wc-heraldbee-integration.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: google ads
heraldbee/class-wc-heraldbee.php 85% from 13 tests
The main PHP file in "Heraldbee - the simple advertising app" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("heraldbee.php" instead of "class-wc-heraldbee.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 234 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin99 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 6 | 64 | 57 |
Sass | 1 | 0 | 0 | 22 |
CSS | 1 | 3 | 0 | 20 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 1.15MB with 0.71MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/step2.png | 213.96KB | 74.12KB | ▼ 65.36% |
assets/img/step5.png | 170.60KB | 62.80KB | ▼ 63.19% |
assets/img/logo.png | 72.72KB | 34.15KB | ▼ 53.04% |
assets/img/step3.png | 178.53KB | 64.02KB | ▼ 64.14% |
assets/img/step4.png | 163.12KB | 61.40KB | ▼ 62.36% |