Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼142.58ms] Passed 4 tests
An overview of server-side resources used by Ads for bbPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 33.30 ▲8.25 |
Dashboard /wp-admin | 3.10 ▲0.05 | 52.41 ▲8.15 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 45.21 ▼0.51 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 84.46 ▼580.35 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 36.75 ▲2.39 |
Ads for bbPRess /wp-admin/options-general.php?page=ads-bbpress/index.php | 3.07 | 29.00 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Ads for bbPress: 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 / | 3,684 ▲89 | 16.28 ▲0.34 | 8.80 ▼0.24 | 48.12 ▲1.55 |
Dashboard /wp-admin | 2,972 ▲38 | 5.84 ▼0.14 | 144.91 ▼10.46 | 106.82 ▼0.18 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 72.09 ▼0.12 | 95.56 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.76 ▲2.49 | 420.24 ▼14.56 | 108.90 ▼7.00 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.08 ▲0.06 | 167.87 ▲9.23 | 109.99 ▼2.13 |
Ads for bbPRess /wp-admin/options-general.php?page=ads-bbpress/index.php | 2,179 | 3.88 | 119.06 | 158.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=ads-bbpress/index.php
- > Notice in wp-content/plugins/ads-bbpress/controls.php+11
Undefined index: options
- > GET request to /wp-admin/options-general.php?page=ads-bbpress/index.php
- > Notice in wp-content/plugins/ads-bbpress/controls.php+14
Undefined index: act
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ads-bbpress/plugin.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
5 plugin tags: bbpress, adsense, ads, monetize, affiliate
ads-bbpress/plugin.php 92% from 13 tests
This is the main PHP file of "Ads for bbPress" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ads-bbpress.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin450 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 90 | 37 | 450 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected