Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Parse error in wp-content/plugins/fanplayr-social-coupons/fanplayr-wpc.php+582
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.18ms] Passed 4 tests
Analyzing server-side resources used by Fanplayr Social Coupons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.35 ▼0.94 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.83 ▼6.74 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.73 ▲1.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.70 ▼10.33 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.97 ▲1.70 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fanplayr Social Coupons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.31 ▼1.24 | 1.74 ▼0.18 | 44.76 ▲0.82 |
Dashboard /wp-admin | 2,206 ▲21 | 4.88 ▼0.93 | 105.34 ▲6.52 | 39.52 ▲3.06 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.06 ▲0.04 | 35.23 ▲0.16 | 31.76 ▼1.89 |
Add New Post /wp-admin/post-new.php | 1,514 ▼3 | 17.48 ▼0.10 | 670.41 ▲5.06 | 52.33 ▲5.59 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▲0.08 | 106.58 ▲2.71 | 47.80 ▲5.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/fanplayr-social-coupons/deputy_tpl.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/fanplayr-social-coupons/fanplayr-wpc.php on line 582
- > PHP Notice
Undefined variable: v in wp-content/plugins/fanplayr-social-coupons/deputy_tpl.php on line 6
- > PHP Notice
Undefined variable: k in wp-content/plugins/fanplayr-social-coupons/deputy_tpl.php on line 6
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
- Stable tag: No value
fanplayr-social-coupons/fanplayr-wpc.php 85% from 13 tests
The principal PHP file in "Fanplayr Social Coupons" v. 1.2.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fanplayr-social-coupons.php" instead of "fanplayr-wpc.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)
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
Success! There were no dangerous files found in this plugin1,205 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 124 | 78 | 558 |
JavaScript | 2 | 50 | 27 | 376 |
CSS | 1 | 28 | 4 | 234 |
HTML | 1 | 5 | 0 | 37 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 1.12MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
res/images/star_gold.png | 0.69KB | 0.58KB | ▼ 15.80% |
res/images/logo_32.png | 15.07KB | 0.24KB | ▼ 98.38% |
screenshot-2.png | 233.88KB | 80.91KB | ▼ 65.40% |
screenshot-1.png | 109.55KB | 109.45KB | 0.10% |
res/images/warning.png | 0.65KB | 0.68KB | 0.00% |