Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/brief/includes/brief-widget.php+140
Trying to access array offset on value of type null
Server metrics [RAM: ▼1.88MB] [CPU: ▼48.74ms] Passed 4 tests
A check of server-side resources used by Brief
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.36 ▼5.13 |
Dashboard /wp-admin | 2.07 ▼1.24 | 7.04 ▼44.26 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 9.02 ▼38.95 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 7.41 ▼83.03 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 5.22 ▼28.72 |
Brief /wp-admin/options-general.php?page=brief-options | 2.07 | 8.73 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Brief
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.45 ▼0.99 | 1.57 ▼0.33 | 42.05 ▼8.11 |
Dashboard /wp-admin | 2,216 ▲28 | 5.03 ▲0.15 | 110.27 ▼5.38 | 39.92 ▼1.98 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.48 ▲0.46 | 38.16 ▲1.77 | 36.94 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,523 ▼13 | 17.80 ▼5.21 | 666.16 ▼4.14 | 37.94 ▼12.10 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.46 ▲0.22 | 98.62 ▲1.99 | 42.96 ▲1.99 |
Brief /wp-admin/options-general.php?page=brief-options | 1,136 | 3.32 | 39.08 | 27.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/brief/includes/brief-widget.php+140
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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)
Almost there, just fix the following server-side errors
- 14 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=brief-options
- > Notice in wp-content/plugins/brief/includes/brief-settings.php+118
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brief/includes/brief-settings.php:132
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/brief/includes/brief-widget.php on line 140
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/brief/includes/brief-scripts.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: readme, widget, promotions, report, changelog...
brief/brief.php Passed 13 tests
The entry point to "Brief" version 1.0.1 is a PHP file that has certain tags in its header comment area
37 characters long description:
Development reports and documentation
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
Good job! No executable or dangerous file extensions detected4,308 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 680 | 983 | 3,942 |
PHP | 6 | 64 | 31 | 267 |
CSS | 1 | 25 | 16 | 97 |
Markdown | 1 | 2 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin