Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.10MB] [CPU: ▲27.91ms] 75% from 4 tests
Analyzing server-side resources used by FlashSpeed
Please fix the following
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.10MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.88 ▲5.42 | 72.30 ▲30.76 |
Dashboard /wp-admin | 8.90 ▲5.59 | 81.34 ▲29.49 |
Posts /wp-admin/edit.php | 8.91 ▲5.55 | 85.82 ▲29.57 |
Add New Post /wp-admin/post-new.php | 9.71 ▲3.82 | 125.17 ▲21.83 |
Media Library /wp-admin/upload.php | 8.90 ▲5.67 | 73.11 ▲35.05 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 8.90 | 63.72 |
Server storage [IO: ▲3.40MB] [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: 351 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
fs_active_plugins |
fs_debug_mode |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by FlashSpeed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲50 | 13.29 ▼0.01 | 4.66 ▲2.95 | 29.47 ▼13.31 |
Dashboard /wp-admin | 2,245 ▲39 | 5.88 ▼0.00 | 108.63 ▲6.16 | 48.25 ▲8.75 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.05 ▲0.02 | 36.42 ▼3.00 | 38.42 ▲3.38 |
Add New Post /wp-admin/post-new.php | 1,532 ▼1 | 17.42 ▼5.65 | 786.09 ▲182.04 | 56.25 ▲2.13 |
Media Library /wp-admin/upload.php | 1,427 ▲36 | 4.22 ▲0.03 | 97.56 ▼2.32 | 44.73 ▲1.61 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,071 | 1.72 | 25.84 | 30.19 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/flashspeed/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- fs_accounts
- theysaidso_admin_options
- fs_debug_mode
- widget_recent-posts
- fs_active_plugins
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following items
- 102× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/flashspeed/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/flashspeed/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/flashspeed/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/flashspeed/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/flashspeed/vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/flashspeed/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/flashspeed/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/flashspeed/vendor/composer/installers/src/Composer/Installers/GravInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/flashspeed/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/flashspeed/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:13
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: assets, utopique, flashspeed, analytics, flash speed...
flashspeed/flashspeed.php 92% from 13 tests
This is the main PHP file of "FlashSpeed" version 2.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 175 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin40,343 lines of code in 292 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 254 | 8,944 | 19,649 | 38,329 |
CSS | 16 | 145 | 62 | 620 |
JSON | 7 | 0 | 0 | 587 |
JavaScript | 7 | 60 | 98 | 394 |
Markdown | 4 | 114 | 0 | 274 |
YAML | 3 | 31 | 3 | 123 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 30.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 162 | |
▷ Abstract classes | 3 | 1.85% |
▷ Concrete classes | 159 | 98.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,478 | |
▷ Static methods | 244 | 16.51% |
▷ Public methods | 1,037 | 70.16% |
▷ Protected methods | 55 | 3.72% |
▷ Private methods | 386 | 26.12% |
Functions | 200 | |
▷ Named functions | 188 | 94.00% |
▷ Anonymous functions | 12 | 6.00% |
Constants | 184 | |
▷ Global constants | 132 | 71.74% |
▷ Class constants | 52 | 28.26% |
▷ Public constants | 52 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |