Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.21ms] Passed 4 tests
A check of server-side resources used by ExtraWatch (Live Stats, Realtime tracking, Visits on a map and more)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 40.01 ▲1.31 |
Dashboard /wp-admin | 3.51 ▲0.21 | 47.84 ▲3.49 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 50.11 ▲2.48 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 84.13 ▼8.13 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.32 ▲5.98 |
Settings /wp-admin/admin.php?page=extrawatch-settings | 3.31 | 29.36 |
ExtraWatch /wp-admin/admin.php?page=extrawatch | 3.31 | 29.88 |
Server storage [IO: ▲2.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ExtraWatch (Live Stats, Realtime tracking, Visits on a map and more)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲50 | 14.58 ▲0.01 | 1.77 ▲0.02 | 43.61 ▲0.26 |
Dashboard /wp-admin | 2,217 ▲40 | 5.50 ▼0.04 | 81.03 ▼5.32 | 76.70 ▲34.70 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.99 ▲0.01 | 39.26 ▲2.40 | 32.74 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,545 ▲6 | 23.70 ▲0.57 | 633.28 ▲24.39 | 64.29 ▼1.32 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.11 ▼0.04 | 93.86 ▲0.01 | 73.89 ▲33.91 |
Settings /wp-admin/admin.php?page=extrawatch-settings | 911 | 1.99 | 22.98 | 25.86 |
ExtraWatch /wp-admin/admin.php?page=extrawatch | 903 | 1.99 | 22.46 | 40.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=extrawatch
- > Notice in wp-content/plugins/extrawatch/ew-plg-common/cms/ExtraWatchWordpressSpecific.php+126
Undefined index: action
- > GET request to /wp-admin/admin.php?page=extrawatch
- > Notice in wp-content/plugins/extrawatch/ew-plg-common/cms/ExtraWatchWordpressSpecific.php+120
Undefined index: page
- > GET request to /wp-admin/admin.php?page=extrawatch
- > Notice in wp-content/plugins/extrawatch/ew-plg-common/cms/ExtraWatchWordpressSpecific.php+120
Undefined index: extrawatch-terms
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
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/extrawatch/extrawatch.php:41
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/extrawatch/ew-plg-common/assets/settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/extrawatch/assets/html/settings.php:13
- > PHP Fatal error
Class ExtraWatchPrestashopSpecific contains 11 abstract methods and must therefore be declared abstract or implement the remaining methods (ExtraWatchCMSSpecific::getComponentPage, ExtraWatchCMSSpecific::getPluginsURL, ExtraWatchCMSSpecific::createNonce, ...) in wp-content/plugins/extrawatch/ew-plg-common/cms/ExtraWatchPrestashopSpecific.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/extrawatch/extrawatch-social.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/extrawatch/assets/html/create-account.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/extrawatch/ew-plg-common/assets/create-account.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% 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 require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (**Visitors** - contains visitor information, refreshed in real time, traffic sources with graphs (google, facebook, twitter, instagram, youtube, linkedin)), #2 (**Map** - displays visitors in real time on a map), #3 (**Click Heatmap** - displays visitor's mouse clicks), #4 (**Stats** - page load stats per day), #5 (**Bots** - see activity of google bot, yahoo, yandex and other website spiders and crawlers), #6 (**Referrers** - where most of the visits came from)
- Requires at least: The plugin version is formatted incorrectly
extrawatch/extrawatch.php 92% from 13 tests
Analyzing the main PHP file in "ExtraWatch (Live Stats, Realtime tracking, Visits on a map and more)" version 4.0.53
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 263 characters long)
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
Everything looks great! No dangerous files found in this plugin1,416 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 455 | 358 | 1,415 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 3.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 187 | |
▷ Static methods | 1 | 0.53% |
▷ Public methods | 171 | 91.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 8.56% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 38 | |
▷ Global constants | 7 | 18.42% |
▷ Class constants | 31 | 81.58% |
▷ Public constants | 31 | 100.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
16 PNG files occupy 1.84MB with 0.96MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ew-plg-common/assets/img/extrawatch-logo-16x16.png | 0.86KB | 0.84KB | ▼ 2.51% |
assets/banner-772x250.png | 127.69KB | 30.24KB | ▼ 76.32% |
screenshot-4.png | 111.53KB | 38.99KB | ▼ 65.04% |
ew-plg-common/assets/img/logo.png | 12.03KB | 4.94KB | ▼ 58.98% |
assets/extrawatch-logo-text.png | 12.03KB | 4.94KB | ▼ 58.98% |