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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.85MB] [CPU: ▼169.76ms] Passed 4 tests
This is a short check of server-side resources used by wp autopost trakt.tv activity
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 41.11 ▲13.92 |
Dashboard /wp-admin | 2.80 ▼0.26 | 27.50 ▼20.21 |
Posts /wp-admin/edit.php | 2.80 ▼0.31 | 25.46 ▼17.50 |
Add New Post /wp-admin/post-new.php | 2.80 ▼2.64 | 25.33 ▼629.63 |
Media Library /wp-admin/upload.php | 2.80 ▼0.21 | 21.08 ▼11.70 |
wp autopost trakttv activity /wp-admin/options-general.php?page=wp_autopost_trakttv_activity | 2.80 | 24.16 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
wp autopost trakt.tv activity: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,688 ▲92 | 15.98 ▲0.51 | 9.10 ▼0.05 | 50.73 ▲0.55 |
Dashboard /wp-admin | 2,982 ▲48 | 5.95 ▲0.01 | 144.13 ▼6.24 | 128.05 ▲10.27 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.71 ▲0.01 | 76.11 ▲11.15 | 94.36 ▼2.90 |
Add New Post /wp-admin/post-new.php | 1,696 ▼2,037 | 15.53 ▼5.56 | 363.87 ▼101.33 | 115.31 ▲2.82 |
Media Library /wp-admin/upload.php | 1,816 ▲6 | 5.06 ▲0.04 | 159.64 ▼5.67 | 127.61 ▲4.24 |
wp autopost trakttv activity /wp-admin/options-general.php?page=wp_autopost_trakttv_activity | 1,521 | 2.10 | 60.56 | 77.46 |
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
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_autopost_trakttv_activity
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-autopost-trakttv-activity/wata_options.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-autopost-trakttv-activity/wp-autopost-trakttv-activity.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-autopost-trakttv-activity ===
)
wp-autopost-trakttv-activity/wp-autopost-trakttv-activity.php 92% from 13 tests
"wp autopost trakt.tv activity" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin883 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 223 | 139 | 794 |
CSS | 1 | 8 | 6 | 60 |
JavaScript | 1 | 13 | 1 | 29 |
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.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/green-checkmark_v3.png | 0.42KB | 0.27KB | ▼ 36.32% |
images/red-cross.png | 0.47KB | 0.30KB | ▼ 35.40% |
images/eye-logo.png | 1.07KB | 0.70KB | ▼ 34.67% |