10% guild-wars-2-players-character-list

Code Review | gw2pcl - Guild Wars 2 Player's Character List

WordPress plugin gw2pcl - Guild Wars 2 Player's Character List scored 10% from 54 tests.

About plugin

  • Plugin page: guild-wars-2-play...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 24, 2013
  • Latest release: Jun 6, 2013
  • Number of updates: 33
  • Update frequency: every 2.8 days
  • Top authors: max.mueller (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,328 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/guild-wars-2-players-character-list/gw2pcl.php+17
    Use of undefined constant gw2pcl_database_version - assumed 'gw2pcl_database_version' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.60MB] [CPU: ▼54.99ms] Passed 4 tests

A check of server-side resources used by gw2pcl - Guild Wars 2 Player's Character List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.39 ▼1.075.80 ▼36.68
Dashboard /wp-admin2.41 ▼0.907.14 ▼47.92
Posts /wp-admin/edit.php2.41 ▼0.955.96 ▼47.05
Add New Post /wp-admin/post-new.php2.41 ▼3.487.65 ▼88.32
Media Library /wp-admin/upload.php2.41 ▼0.827.81 ▼25.56

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables
wp_gw2pcl
New WordPress options
db_upgraded
gw2pcl_database_version
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for gw2pcl - Guild Wars 2 Player's Character List
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6614.41 ▲0.101.76 ▼0.3144.63 ▼8.10
Dashboard /wp-admin2,212 ▲335.89 ▲0.03135.30 ▲17.0877.53 ▲27.82
Posts /wp-admin/edit.php2,110 ▲182.03 ▲0.0734.83 ▼11.8634.14 ▼7.35
Add New Post /wp-admin/post-new.php1,685 ▲17121.32 ▼2.29725.90 ▼42.5562.86 ▼4.85
Media Library /wp-admin/upload.php1,406 ▲184.23 ▲0.03126.46 ▼11.6170.21 ▲6.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/guild-wars-2-players-character-list/gw2pcl.php+17
    Use of undefined constant gw2pcl_database_version - assumed 'gw2pcl_database_version' (this will throw an Error in a future version of PHP)
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • gw2pcl_database_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/guild-wars-2-players-character-list/gw2pcl.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === guild-wars-2-players-character-list === )
The official readme.txt is a good inspiration

guild-wars-2-players-character-list/gw2pcl.php 85% from 13 tests

The primary PHP file in "gw2pcl - Guild Wars 2 Player's Character List" version 2.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 233 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("guild-wars-2-players-character-list.php" instead of "gw2pcl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected935 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP113767735
PO File17692164
CSS18036

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected