Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼5.58ms] Passed 4 tests
This is a short check of server-side resources used by Smartlook
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 44.39 ▲3.18 |
Dashboard /wp-admin | 3.44 ▲0.09 | 53.74 ▼5.00 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 52.25 ▼5.79 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 87.58 ▼14.70 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 43.41 ▲3.27 |
Smartlook /wp-admin/options-general.php?page=smartlook | 3.33 | 33.93 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 137 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Smartlook: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.72 ▲0.37 | 1.64 ▼0.20 | 43.96 ▼2.38 |
Dashboard /wp-admin | 2,199 ▲22 | 5.58 ▼0.13 | 99.48 ▲8.06 | 42.01 ▲1.66 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▼0.02 | 39.03 ▲1.13 | 34.83 ▼0.72 |
Add New Post /wp-admin/post-new.php | 6,233 ▲4,707 | 26.11 ▲3.07 | 954.15 ▲309.30 | 62.47 ▲7.14 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.15 ▼0.01 | 100.01 ▲1.41 | 42.16 ▼1.94 |
Smartlook /wp-admin/options-general.php?page=smartlook | 788 | 2.02 | 23.19 | 30.07 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpsmartlook/tests/bootstrap.php
- 92× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpsmartlook/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/wpsmartlook/vendor/composer/installers/src/Composer/Installers/Installer.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpsmartlook/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpsmartlook/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpsmartlook/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpsmartlook/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpsmartlook/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpsmartlook/vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpsmartlook/vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wpsmartlook/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php:7
- > 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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: heatmaps, user, testing, recording, tracking...
wpsmartlook/wpsmartlook.php Passed 13 tests
Analyzing the main PHP file in "Smartlook" version 1.2.1
58 characters long description:
Easy integration of Smartlook into your WordPress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,726 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 110 | 532 | 899 | 2,781 |
JSON | 6 | 0 | 0 | 1,605 |
JavaScript | 7 | 4 | 7 | 140 |
Bourne Shell | 1 | 21 | 11 | 123 |
XML | 3 | 11 | 2 | 55 |
Markdown | 1 | 11 | 0 | 22 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 2.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 101 | |
▷ Abstract classes | 1 | 0.99% |
▷ Concrete classes | 100 | 99.01% |
▷ Final classes | 0 | 0.00% |
Methods | 147 | |
▷ Static methods | 4 | 2.72% |
▷ Public methods | 104 | 70.75% |
▷ Protected methods | 31 | 21.09% |
▷ Private methods | 12 | 8.16% |
Functions | 10 | |
▷ Named functions | 3 | 30.00% |
▷ Anonymous functions | 7 | 70.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin