Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/big-red-button/big-red-button.php+21
Methods with the same name as their class will not be constructors in a future version of PHP; mp_brb_widget_big_red_button has a deprecated constructor
Server metrics [RAM: ▼0.00MB] [CPU: ▼126.78ms] Passed 4 tests
Server-side resources used by Big Red Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 42.76 ▲16.00 |
Dashboard /wp-admin | 3.06 ▲0.00 | 114.11 ▲65.80 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 52.90 ▲7.82 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 111.14 ▼536.39 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 39.65 ▲5.44 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Big Red Button: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 15.99 ▲0.35 | 11.51 ▲1.71 | 44.70 ▼5.97 |
Dashboard /wp-admin | 2,970 ▲39 | 5.89 ▼0.08 | 148.89 ▼6.90 | 114.74 ▼5.50 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 67.92 ▼16.38 | 92.73 ▼1.78 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 18.39 ▼2.96 | 459.25 ▲119.40 | 167.62 ▲57.92 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.00 ▼0.02 | 180.22 ▲30.41 | 127.01 ▲5.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
require(/includes/ago.php): failed to open stream: No such file or directory in wp-content/plugins/big-red-button/big-red-button.php on line 13
- > PHP Fatal error
require(): Failed opening required '/includes/ago.php' (include_path='.:/usr/share/php') in wp-content/plugins/big-red-button/big-red-button.php on line 13
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Big Red Button in the sidebar), #2 (Widget administration)
big-red-button/big-red-button.php Passed 13 tests
Analyzing the main PHP file in "Big Red Button" version 1.1
103 characters long description:
A simple widget that displays a big red button. A message will be shown when someone clicks the button.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin104 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 33 | 18 | 104 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
big-red-button.png | 8.48KB | 4.81KB | ▼ 43.32% |
screenshot-1.png | 17.28KB | 7.42KB | ▼ 57.08% |
screenshot-2.png | 11.17KB | 6.20KB | ▼ 44.46% |