Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.97ms] Passed 4 tests
A check of server-side resources used by Better Plugins Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.54 ▼6.70 |
Dashboard /wp-admin | 3.35 ▲0.05 | 43.50 ▼4.16 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 44.00 ▼1.99 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 81.73 ▼15.04 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.35 ▲2.49 |
Compare /wp-admin/plugins.php?page=bpp-compare-site-plugins | 3.24 | 31.13 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Better Plugins Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.25 ▼1.40 | 1.68 ▼0.50 | 40.53 ▼3.78 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼0.03 | 98.68 ▼21.84 | 37.76 ▼6.17 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▼0.00 | 40.77 ▲0.33 | 33.96 ▲1.49 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.21 ▲4.80 | 672.50 ▲53.73 | 53.29 ▲4.32 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▼0.01 | 102.23 ▲4.70 | 46.84 ▲2.61 |
Compare /wp-admin/plugins.php?page=bpp-compare-site-plugins | 782 | 2.05 | 23.97 | 25.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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)
Even though no errors were found, this is by no means an exhaustive test
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× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-plugins/better-plugins-plugin.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-plugins/bpp-plugins-report.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-plugins/bpp-compare-site-plugins.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 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
7 plugin tags: tools, management, plugins, admin, productivity...
better-plugins/better-plugins-plugin.php 92% from 13 tests
"Better Plugins Plugin" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("better-plugins.php" instead of "better-plugins-plugin.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
Success! There were no dangerous files found in this plugin503 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 104 | 100 | 474 |
Markdown | 1 | 14 | 0 | 15 |
CSS | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 36.50 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin