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.53MB] [CPU: ▲3.04ms] Passed 4 tests
Analyzing server-side resources used by WP G2A Goldmine CD Keys Affiliate
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.56 | 49.25 ▲0.99 |
Dashboard /wp-admin | 3.87 ▲0.56 | 53.94 ▲0.07 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 77.26 ▲19.46 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.50 | 116.64 ▲6.61 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 41.86 ▲4.50 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
wpggma_RewriteBaseSlug |
db_upgraded |
wpggma_RewriteGameSlug |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP G2A Goldmine CD Keys Affiliate
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲39 | 14.28 ▼0.10 | 1.80 ▼0.32 | 44.84 ▼3.17 |
Dashboard /wp-admin | 2,228 ▲51 | 5.56 ▼0.11 | 91.24 ▼3.58 | 44.94 ▲4.80 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.98 ▼0.00 | 40.11 ▼4.16 | 39.66 ▼1.04 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.62 ▲0.56 | 654.76 ▲50.76 | 53.18 ▲7.33 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.36 ▲0.10 | 137.10 ▲37.26 | 55.28 ▲12.80 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- wpggma_RewriteGameSlug
- wpggma_RewriteBaseSlug
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-g2a-goldmine-cd-keys-affiliate/wp-g2a-goldmine.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-g2a-goldmine-cd-keys-affiliate/inc/functions.php:233
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-g2a-goldmine-cd-keys-affiliate/inc/hooks.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-g2a-goldmine-cd-keys-affiliate/inc/post-types.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-g2a-goldmine-cd-keys-affiliate/inc/ajax.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: gaming, affiliation, games, affiliate, goldmine...
wp-g2a-goldmine-cd-keys-affiliate/wp-g2a-goldmine.php 85% from 13 tests
The main file in "WP G2A Goldmine CD Keys Affiliate" v. 0.7.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-g2a-goldmine-cd-keys-affiliate.php" instead of "wp-g2a-goldmine.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin11,414 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 422 | 98 | 8,155 |
PHP | 12 | 625 | 568 | 2,920 |
JavaScript | 2 | 86 | 26 | 339 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 39 | 31.20% |
▷ Public methods | 104 | 83.20% |
▷ Protected methods | 16 | 12.80% |
▷ Private methods | 5 | 4.00% |
Functions | 36 | |
▷ Named functions | 35 | 97.22% |
▷ Anonymous functions | 1 | 2.78% |
Constants | 61 | |
▷ Global constants | 22 | 36.07% |
▷ Class constants | 39 | 63.93% |
▷ Public constants | 39 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/g2a.png | 8.26KB | 5.24KB | ▼ 36.50% |