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: ▼9.63ms] Passed 4 tests
Server-side resources used by Beta Flags ... now with A/B Testing!
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.98 ▼3.62 |
Dashboard /wp-admin | 3.37 ▲0.02 | 44.93 ▼13.47 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.33 ▲0.34 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 78.83 ▼15.70 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 31.37 ▼5.73 |
Beta Flags /wp-admin/tools.php?page=beta-flags | 3.25 | 28.68 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Beta Flags ... now with A/B Testing!
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.63 ▲0.23 | 1.74 ▼0.09 | 44.79 ▲0.29 |
Dashboard /wp-admin | 2,196 ▲19 | 5.55 ▼0.13 | 83.92 ▼7.35 | 38.89 ▼0.04 |
Posts /wp-admin/edit.php | 2,107 ▲25 | 2.00 ▼0.01 | 37.38 ▲2.61 | 33.14 ▼4.59 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.18 ▲0.03 | 664.47 ▲3.42 | 58.39 ▼4.05 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.21 ▲0.01 | 96.78 ▼0.29 | 42.48 ▼1.75 |
Beta Flags /wp-admin/tools.php?page=beta-flags | 897 | 2.03 | 24.12 | 25.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=beta-flags
- > Notice in wp-content/plugins/beta-flags/classes/class-admin.php+41
Trying to get property 'ab_test_on' of non-object
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: developers, ab testing, beta flags, feature flags
beta-flags/beta-flags.php 92% from 13 tests
"Beta Flags ... now with A/B Testing!" version 1.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected325 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 25 | 94 | 235 |
Markdown | 1 | 26 | 0 | 71 |
JSON | 1 | 0 | 0 | 19 |
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.36 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected