78% wp-autopost-trakttv-activity

Code Review | wp autopost trakt.tv activity

WordPress plugin wp autopost trakt.tv activity scored 78% from 54 tests.

About plugin

  • Plugin page: wp-autopost-trakt...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 5.8.1
  • First release: Jun 18, 2014
  • Latest release: Oct 23, 2014
  • Number of updates: 9
  • Update frequency: every 14.1 days
  • Top authors: sylvainlodeho (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,300 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1841.11 ▲13.92
Dashboard /wp-admin2.80 ▼0.2627.50 ▼20.21
Posts /wp-admin/edit.php2.80 ▼0.3125.46 ▼17.50
Add New Post /wp-admin/post-new.php2.80 ▼2.6425.33 ▼629.63
Media Library /wp-admin/upload.php2.80 ▼0.2121.08 ▼11.70
wp autopost trakttv activity /wp-admin/options-general.php?page=wp_autopost_trakttv_activity2.8024.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,688 ▲9215.98 ▲0.519.10 ▼0.0550.73 ▲0.55
Dashboard /wp-admin2,982 ▲485.95 ▲0.01144.13 ▼6.24128.05 ▲10.27
Posts /wp-admin/edit.php2,748 ▲92.71 ▲0.0176.11 ▲11.1594.36 ▼2.90
Add New Post /wp-admin/post-new.php1,696 ▼2,03715.53 ▼5.56363.87 ▼101.33115.31 ▲2.82
Media Library /wp-admin/upload.php1,816 ▲65.06 ▲0.04159.64 ▼5.67127.61 ▲4.24
wp autopost trakttv activity /wp-admin/options-general.php?page=wp_autopost_trakttv_activity1,5212.1060.5677.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

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 === )
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP2223139794
CSS18660
JavaScript113129

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 code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/green-checkmark_v3.png0.42KB0.27KB▼ 36.32%
images/red-cross.png0.47KB0.30KB▼ 35.40%
images/eye-logo.png1.07KB0.70KB▼ 34.67%