84% wp-gw2-wvw

Code Review | Guild Wars 2 World vs World

WordPress plugin Guild Wars 2 World vs World scored84%from 54 tests.

About plugin

  • Plugin page: wp-gw2-wvw
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 12, 2017
  • Latest release: Aug 12, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: ironghost63 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /688 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.21ms] Passed 4 tests

Server-side resources used by Guild Wars 2 World vs World
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.45 ▲1.53
Dashboard /wp-admin3.35 ▲0.0450.20 ▼5.19
Posts /wp-admin/edit.php3.40 ▲0.0453.62 ▲2.06
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.70 ▼7.25
Media Library /wp-admin/upload.php3.27 ▲0.0438.54 ▲2.86

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Guild Wars 2 World vs World
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.27 ▼0.002.12 ▲0.2946.67 ▲1.88
Dashboard /wp-admin2,198 ▲245.61 ▼0.0991.95 ▼4.1441.03 ▼1.90
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0039.87 ▼0.1836.29 ▼1.35
Add New Post /wp-admin/post-new.php1,538 ▲1223.13 ▲0.16695.89 ▼26.6057.00 ▲0.22
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.04100.75 ▼12.6341.23 ▼4.44

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gw2-wvw/wp-gw2-wvw.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2 in wp-gw2-wvw/assets to your readme.txt
The official readme.txt might help

wp-gw2-wvw/wp-gw2-wvw.php 92% from 13 tests

"Guild Wars 2 World vs World" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin217 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23013178
CSS16430
Markdown1609

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
home.png0.51KB0.38KB▼ 26.00%