Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/fluid/includes/admin/class-settings-page.php+489
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.79MB] [CPU: ▼54.00ms] Passed 4 tests
This is a short check of server-side resources used by Fluid
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 9.72 ▼34.86 |
Dashboard /wp-admin | 2.23 ▼1.08 | 8.87 ▼48.15 |
Posts /wp-admin/edit.php | 2.23 ▼1.13 | 7.26 ▼44.18 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.66 | 6.30 ▼88.81 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 6.23 ▼33.64 |
Fluid.us /wp-admin/options-general.php?page=fluid-settings-admin | 2.23 | 6.39 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Fluid
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲13 | 14.24 ▼0.42 | 1.68 ▼0.16 | 40.34 ▲1.37 |
Dashboard /wp-admin | 2,199 ▲22 | 5.53 ▼0.16 | 85.24 ▼16.61 | 38.68 ▼7.56 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.00 ▲0.00 | 39.03 ▲1.70 | 35.04 ▼1.18 |
Add New Post /wp-admin/post-new.php | 6,362 ▲4,834 | 25.88 ▲2.88 | 884.44 ▲195.38 | 57.73 ▲6.83 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.01 | 102.76 ▼2.81 | 45.47 ▼1.43 |
Fluid.us /wp-admin/options-general.php?page=fluid-settings-admin | 1,110 | 2.12 | 25.70 | 34.20 |
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
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/fluid/includes/admin/class-settings-page.php+489
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=fluid-settings-admin
- > Deprecated in wp-content/plugins/fluid/includes/admin/class-settings-page.php+489
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fluid-settings-admin
- > Notice in wp-content/plugins/fluid/includes/admin/class-metaboxes.php+45
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=fluid-settings-admin
- > Notice in wp-content/plugins/fluid/includes/class-content-control.php+284
Trying to access array offset on value of type null
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function fluid\\plugin_dir_path() in wp-content/plugins/fluid/fluid.php:47
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Invalid URI found ("https:/fluid.us/")
fluid/fluid.php Passed 13 tests
"Fluid" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
28 characters long description:
Micro payments with Fluid.us
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,146 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 473 | 525 | 1,096 |
JavaScript | 2 | 0 | 4 | 48 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 73 | |
▷ Static methods | 6 | 8.22% |
▷ Public methods | 60 | 82.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 17.81% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo-64x64.png | 5.56KB | 2.03KB | ▼ 63.53% |