Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▲0.13ms] Passed 4 tests
A check of server-side resources used by Traktivity
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 41.51 ▼3.82 |
Dashboard /wp-admin | 3.73 ▲0.43 | 52.61 ▲3.47 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 56.09 ▲10.52 |
Add New Post /wp-admin/post-new.php | 6.61 ▲0.72 | 99.82 ▼0.37 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 40.08 ▲1.23 |
Year /wp-admin/edit-tags.php?taxonomy=trakt_year&post_type=traktivity_event | 3.65 | 41.15 |
Genre /wp-admin/edit-tags.php?taxonomy=trakt_genre&post_type=traktivity_event | 3.65 | 38.23 |
Episode Numbers /wp-admin/edit-tags.php?taxonomy=trakt_episode&post_type=traktivity_event | 3.65 | 39.56 |
Dashboard /wp-admin/edit.php?post_type=traktivity_event&page=traktivity_dashboard | 3.63 | 35.20 |
Season /wp-admin/edit-tags.php?taxonomy=trakt_season&post_type=traktivity_event | 3.65 | 39.00 |
Show /wp-admin/edit-tags.php?taxonomy=trakt_show&post_type=traktivity_event | 3.65 | 37.65 |
All Trakt.tv Events /wp-admin/edit.php?post_type=traktivity_event | 3.70 | 39.84 |
Type /wp-admin/edit-tags.php?taxonomy=trakt_type&post_type=traktivity_event | 3.65 | 34.56 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_traktivity_list_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Traktivity
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲112 | 14.77 ▲0.38 | 1.53 ▼0.66 | 41.06 ▼11.04 |
Dashboard /wp-admin | 2,253 ▲62 | 4.84 ▼1.07 | 111.71 ▲11.67 | 40.50 ▲3.54 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.06 ▲0.06 | 37.42 ▼2.48 | 33.48 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,574 ▲60 | 20.85 ▲3.34 | 663.53 ▲2.71 | 59.94 ▲9.14 |
Media Library /wp-admin/upload.php | 1,438 ▲53 | 4.16 ▼0.04 | 117.93 ▲11.39 | 52.37 ▲1.90 |
Year /wp-admin/edit-tags.php?taxonomy=trakt_year&post_type=traktivity_event | 1,281 | 2.14 | 33.78 | 31.28 |
Genre /wp-admin/edit-tags.php?taxonomy=trakt_genre&post_type=traktivity_event | 1,281 | 2.13 | 31.48 | 31.24 |
Episode Numbers /wp-admin/edit-tags.php?taxonomy=trakt_episode&post_type=traktivity_event | 1,281 | 2.13 | 30.15 | 29.43 |
Dashboard /wp-admin/edit.php?post_type=traktivity_event&page=traktivity_dashboard | 845 | 3.05 | 55.45 | 30.79 |
Season /wp-admin/edit-tags.php?taxonomy=trakt_season&post_type=traktivity_event | 1,278 | 2.14 | 29.73 | 25.98 |
Show /wp-admin/edit-tags.php?taxonomy=trakt_show&post_type=traktivity_event | 1,310 | 2.14 | 31.47 | 29.92 |
All Trakt.tv Events /wp-admin/edit.php?post_type=traktivity_event | 1,188 | 1.94 | 32.49 | 30.65 |
Type /wp-admin/edit-tags.php?taxonomy=trakt_type&post_type=traktivity_event | 1,284 | 2.13 | 27.11 | 25.33 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_traktivity_list_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 8× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/traktivity/rest.traktivity.php
- > /wp-content/plugins/traktivity/widgets/list-events.php
- > /wp-content/plugins/traktivity/cpt.traktivity.php
- > /wp-content/plugins/traktivity/core.traktivity.php
- > /wp-content/plugins/traktivity/admin.traktivity.php
- > /wp-content/plugins/traktivity/traktivity.php
- > /wp-content/plugins/traktivity/stats.traktivity.php
- > /wp-content/plugins/traktivity/content.traktivity.php
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: movies, tmdb, activity, log, trakttv...
traktivity/traktivity.php 92% from 13 tests
This is the main PHP file of "Traktivity" version 2.3.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,769 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 316 | 908 | 1,619 |
JSON | 2 | 0 | 0 | 643 |
CSS | 2 | 44 | 29 | 232 |
Markdown | 1 | 46 | 0 | 218 |
JavaScript | 2 | 2 | 19 | 57 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 25.86 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 3 | 5.77% |
▷ Public methods | 45 | 86.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 13.46% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin