Benchmarks
Plugin footprint Passed 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.00MB] [CPU: ▼144.98ms] Passed 4 tests
An overview of server-side resources used by BP Custom Pages
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 45.38 ▲14.43 |
Dashboard /wp-admin | 3.06 ▲0.00 | 49.93 ▼5.62 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 53.61 ▲4.46 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 93.17 ▼578.12 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 35.50 ▼0.65 |
Server storage [IO: ▲0.05MB] [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: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
BP Custom Pages: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲96 | 15.94 ▼0.07 | 8.30 ▼1.53 | 56.18 ▲3.17 |
Dashboard /wp-admin | 2,967 ▲33 | 5.90 ▼0.04 | 173.51 ▼10.98 | 116.79 ▼14.19 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.01 | 76.73 ▲1.30 | 96.00 ▼7.14 |
Add New Post /wp-admin/post-new.php | 1,683 ▲102 | 18.77 ▲0.22 | 388.64 ▼13.76 | 115.39 ▼4.04 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▲0.01 | 158.68 ▼10.06 | 118.27 ▼12.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bp-custom-pages/includes/bp-custom-pages-functions.php:88
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-custom-pages/includes/bp-custom-pages-admin.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/bp-custom-pages/loader.php:16
- > 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 83% from 29 tests
readme.txt 81% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in bp-custom-pages/assets to your readme.txt
- Requires at least: Version not formatted correctly
- Donate link: Invalid URI found ("")
bp-custom-pages/loader.php 85% from 13 tests
The primary PHP file in "BP Custom Pages" version 1.1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "WP 3.2.1, BuddyPress 1.5")
- Main file name: The principal plugin file should be the same as the plugin slug ("bp-custom-pages.php" instead of "loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected515 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 175 | 422 | 515 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 32 | 96.97% |
▷ Anonymous functions | 1 | 3.03% |
Constants | 5 | |
▷ Global constants | 5 | 100.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 images were found in this plugin