84% eliteprospects-player-link

Code Review | Eliteprospects Link Generator

WordPress plugin Eliteprospects Link Generator scored84%from 54 tests.

About plugin

  • Plugin page: eliteprospects-pl...
  • Plugin version: 0.6.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.4.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2013
  • Latest release: Jul 27, 2020
  • Number of updates: 27
  • Update frequency: every 100.7 days
  • Top authors: carlgrundberg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,846 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.46ms] Passed 4 tests

Server-side resources used by Eliteprospects Link Generator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.15 ▲0.24
Dashboard /wp-admin3.31 ▲0.0146.13 ▼0.58
Posts /wp-admin/edit.php3.37 ▲0.0145.08 ▼3.69
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.26 ▼17.79
Media Library /wp-admin/upload.php3.24 ▲0.0135.39 ▲2.81

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Eliteprospects Link Generator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.45 ▲0.021.81 ▲0.0543.30 ▼2.13
Dashboard /wp-admin2,206 ▲155.81 ▼0.2598.43 ▼12.8542.30 ▼4.54
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0133.50 ▼9.4937.15 ▲0.98
Add New Post /wp-admin/post-new.php1,537 ▼023.25 ▼0.01689.22 ▲15.4537.05 ▼19.56
Media Library /wp-admin/upload.php1,391 ▲64.23 ▲0.0496.41 ▼3.2643.38 ▲0.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eliteprospects-player-link/index.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

eliteprospects-player-link/index.php 92% from 13 tests

Analyzing the main PHP file in "Eliteprospects Link Generator" version 0.6.4
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("eliteprospects-player-link.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin262 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22123206
CSS15029
PHP1111027

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
iconf.png2.17KB1.19KB▼ 45.05%
icon.png2.17KB1.13KB▼ 47.75%