Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.24MB] [CPU: ▼41.06ms] Passed 4 tests
This is a short check of server-side resources used by Mode Analytics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.73 | 14.02 ▼31.21 |
Dashboard /wp-admin | 2.77 ▼0.53 | 21.78 ▼24.51 |
Posts /wp-admin/edit.php | 2.77 ▼0.58 | 21.28 ▼27.44 |
Add New Post /wp-admin/post-new.php | 2.77 ▼3.11 | 17.18 ▼81.09 |
Media Library /wp-admin/upload.php | 2.77 ▼0.46 | 14.59 ▼20.34 |
Mode Analytics /wp-admin/options-general.php?page=mode-analytics | 2.78 | 16.24 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Mode Analytics: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.62 ▼0.74 | 4.73 ▲2.85 | 38.82 ▼7.27 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▼0.20 | 106.93 ▼2.74 | 41.30 ▼2.91 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.05 | 40.95 ▼1.86 | 34.87 ▼0.65 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 18.31 ▲0.09 | 650.94 ▲17.23 | 53.79 ▼9.65 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.16 ▼0.01 | 96.59 ▼8.21 | 42.44 ▼2.32 |
Mode Analytics /wp-admin/options-general.php?page=mode-analytics | 841 | 1.86 | 34.70 | 28.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/mode-analytics/mode-analytics.php+39
implode(): Passing glue string after array is deprecated. Swap the parameters
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
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)
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mode-analytics
- > Deprecated in wp-content/plugins/mode-analytics/mode-analytics.php+39
implode(): Passing glue string after array is deprecated. Swap the parameters
- > GET request to /wp-admin/options-general.php?page=mode-analytics
- > Notice in wp-content/plugins/mode-analytics/inc/class-settings.php+383
Undefined index: show_filters
- > GET request to /wp-admin/options-general.php?page=mode-analytics
- > Notice in wp-content/plugins/mode-analytics/inc/class-settings.php+387
Undefined index: show_export_csv
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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mode-analytics/mode-analytics.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (From any report in Mode, turn on the White-Label Embed toggle.), #2 (Enter your Mode authentication credentials and the report's URL on the plugin's settings page.), #3 (Add a unique token to your report to dynamically change the content of the report based on who's viewing it.), #4 (Add embed to pages on your WordPress site using a short code.), #5 (View your White-Label Embed.)
mode-analytics/mode-analytics.php 92% from 13 tests
The main file in "Mode Analytics" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
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
No dangerous file extensions were detected667 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 53 | 201 | 583 |
JavaScript | 2 | 1 | 0 | 84 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 19 | 100.00% |
▷ Public methods | 10 | 52.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 47.37% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 1.73MB with 1.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 367.27KB | 94.76KB | ▼ 74.20% |
screenshot-3.png | 297.00KB | 82.44KB | ▼ 72.24% |
screenshot-1.png | 405.77KB | 137.80KB | ▼ 66.04% |
screenshot-4.png | 370.70KB | 111.42KB | ▼ 69.94% |
screenshot-2.png | 335.35KB | 95.90KB | ▼ 71.40% |