62% allplayerscom-connect

Code Review | AllPlayers.com Connect

WordPress plugin AllPlayers.com Connect scored62%from 54 tests.

About plugin

  • Plugin page: allplayerscom-con...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3
  • WordPress version: 6.3.1
  • First release: Aug 23, 2012
  • Latest release: Aug 23, 2012
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: imetchrischris (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /887 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.91MB] [CPU: ▼33.62ms] Passed 4 tests

This is a short check of server-side resources used by AllPlayers.com Connect
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.53 ▼6.26
Dashboard /wp-admin3.05 ▼0.3023.88 ▼35.85
Posts /wp-admin/edit.php3.05 ▼0.3124.03 ▼23.56
Add New Post /wp-admin/post-new.php3.05 ▼2.8424.97 ▼63.83
Media Library /wp-admin/upload.php3.05 ▼0.1820.98 ▼11.25
AllPlayers.com Connect /wp-admin/options-general.php?page=ap3.0523.71

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for AllPlayers.com Connect
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲2814.72 ▲0.171.63 ▼0.3543.18 ▲1.67
Dashboard /wp-admin2,205 ▲285.56 ▼0.1183.64 ▼4.7239.57 ▼1.83
Posts /wp-admin/edit.php2,110 ▲71.98 ▼0.0434.50 ▼1.7435.20 ▼0.11
Add New Post /wp-admin/post-new.php1,543 ▲1718.23 ▼4.69585.66 ▼84.6165.75 ▲7.54
Media Library /wp-admin/upload.php1,410 ▲134.33 ▲0.1896.37 ▼6.7042.15 ▼2.87
AllPlayers.com Connect /wp-admin/options-general.php?page=ap9621.7825.9528.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/allplayerscom-connect/ap.php+69
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=ap
    • > Deprecated in wp-content/plugins/allplayerscom-connect/ap.php+69
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=ap
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ap
    • > Notice in wp-content/plugins/allplayerscom-connect/ap.php+262
    Trying to access array offset on value of type bool

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/allplayerscom-connect/uninstall.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/allplayerscom-connect/ap.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/allplayerscom-connect/ap-login.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Login screen with AllPlayers.com login option.), #2 (AllPlayers.com Connect on My Profile screen.), #3 (AllPlayers.com Connect, connected, on My Profile screen.)
Please take inspiration from this readme.txt

allplayerscom-connect/ap.php 92% from 13 tests

"AllPlayers.com Connect" version 0.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:
  • Main file name: The principal plugin file should be the same as the plugin slug ("allplayerscom-connect.php" instead of "ap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected896 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5228285896

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.83
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods70
▷ Static methods1014.29%
▷ Public methods5984.29%
▷ Protected methods22.86%
▷ Private methods912.86%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
11 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/Sign-in-with-AllPlayers-darker.png5.87KB3.54KB▼ 39.76%
images/ap_bug_w.png1.71KB1.60KB▼ 6.46%
images/Sign-in-with-AllPlayers-lighter-small.png2.30KB1.83KB▼ 20.52%
images/Sign-in-with-AllPlayers-lighter.png5.94KB3.26KB▼ 45.14%
images/ap_btn_sm_b.png4.24KB2.79KB▼ 34.09%