Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/fl3r-user-agent-comments/include/browser.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; Browser has a deprecated constructor
Server metrics [RAM: ▼0.95MB] [CPU: ▼32.92ms] Passed 4 tests
This is a short check of server-side resources used by FL3R User Agent Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.52 ▲1.91 |
Dashboard /wp-admin | 3.00 ▼0.31 | 23.62 ▼24.06 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 21.98 ▼27.36 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 25.12 ▼69.30 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 24.34 ▼10.96 |
FL3R User Agent Comments /wp-admin/options-general.php?page=fl3r-user-agent-comments | 3.00 | 23.38 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 179 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
fuac_options |
recovery_mode_email_last_sent |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for FL3R User Agent Comments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,880 ▼931 | 12.30 ▼1.02 | 2.00 ▼2.70 | 41.71 ▼0.34 |
Dashboard /wp-admin | 1,289 ▼917 | 1.38 ▼4.42 | 16.15 ▼77.65 | 35.43 ▼4.00 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.06 ▼0.00 | 39.11 ▼0.12 | 43.59 ▲9.08 |
Add New Post /wp-admin/post-new.php | 1,670 ▲136 | 21.98 ▼1.36 | 711.70 ▲47.77 | 30.93 ▼19.31 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.18 ▼0.08 | 96.10 ▼11.83 | 41.74 ▼2.50 |
FL3R User Agent Comments /wp-admin/options-general.php?page=fl3r-user-agent-comments | 2,070 | 2.22 | 37.25 | 81.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 8 options in the database
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_recent-posts
- fuac_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fl3r-user-agent-comments
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=fl3r-user-agent-comments
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=fl3r-user-agent-comments
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/fl3r-user-agent-comments/start.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=fl3r-user-agent-comments
- > Network (severe)
wp-content/plugins/fl3r-user-agent-comments/js/jquery.dd.min.js - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fl3r-user-agent-comments
- > Network (severe)
wp-content/plugins/fl3r-user-agent-comments/images/gui/dash-security.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fl3r-user-agent-comments
- > Network (severe)
wp-content/plugins/fl3r-user-agent-comments/images/gui/dash-restyle.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=fl3r-user-agent-comments
- > Network (severe)
wp-content/plugins/fl3r-user-agent-comments/images/gui/dash-localization.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fl3r-user-agent-comments
- > Network (severe)
wp-content/plugins/fl3r-user-agent-comments/images/gui/dash-patch.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fl3r-user-agent-comments
- > Network (severe)
wp-content/plugins/fl3r-user-agent-comments/images/gui/dash-update.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=fl3r-user-agent-comments
- > Network (severe)
wp-content/plugins/fl3r-user-agent-comments/images/gui/dash-paypal.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fl3r-user-agent-comments
- > Network (severe)
wp-content/plugins/fl3r-user-agent-comments/images/gui/dash-add.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=fl3r-user-agent-comments
- > Network (severe)
wp-content/plugins/fl3r-user-agent-comments/images/gui/dash-first.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (FL3R User Agent Comments in a comment.), #2 (Currently supported about 60 browsers, 100 OS and some bots.), #3 (Comments in widget with FL3R User Agent Comments support. Available only with "After comment author name" setting.), #4 (Settings.), #5 (Credits.)
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
fl3r-user-agent-comments/start.php 92% from 13 tests
The principal PHP file in "FL3R User Agent Comments" v. 2.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fl3r-user-agent-comments.php" instead of "start.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin8,067 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,827 | 1,999 | 6,812 |
PHP | 2 | 218 | 175 | 1,039 |
CSS | 1 | 16 | 6 | 216 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 205)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 205.00 |
▷ Minimum class complexity | 205.00 |
▷ Maximum class complexity | 205.00 |
Average method complexity | 205.00 |
▷ Minimum method complexity | 205.00 |
▷ Maximum method complexity | 205.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 | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
170 PNG files occupy 0.53MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/browser/wordpress.com.png | 1.73KB | 1.50KB | ▼ 13.35% |
images/os/dragonfly bsd.png | 1.54KB | 1.39KB | ▼ 9.84% |
images/os/windows-98.png | 2.77KB | 1.62KB | ▼ 41.34% |
images/os/sailfish os.png | 0.91KB | 1.22KB | 0.00% |
images/browser/wordpress.png | 2.60KB | 1.84KB | ▼ 29.16% |