Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼6.33ms] Passed 4 tests
A check of server-side resources used by InPlayer Paywall
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.04 ▼1.70 |
Dashboard /wp-admin | 3.40 ▲0.10 | 43.52 ▼6.22 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 46.30 ▼0.04 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 79.93 ▼15.85 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 33.41 ▼1.54 |
Activate Account /wp-admin/admin.php?page=inplayer-activate | 3.33 | 31.18 |
Login /wp-admin/admin.php?page=inplayer-login | 3.30 | 32.39 |
InPlayer PayWall /wp-admin/admin.php?page=inplayer-home | 3.33 | 31.65 |
Terms & Conditions /wp-admin/admin.php?page=inplayer-terms | 3.33 | 33.73 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for InPlayer Paywall
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,652 ▼1,083 | 10.26 ▼2.99 | 2.02 ▼2.73 | 43.18 ▼5.11 |
Dashboard /wp-admin | 1,020 ▼1,171 | 2.13 ▼2.73 | 37.81 ▼65.94 | 32.33 ▼10.93 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.05 ▲0.05 | 36.60 ▼6.12 | 34.85 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,549 ▲6 | 23.54 ▲0.51 | 688.84 ▲43.36 | 37.08 ▼16.82 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.23 ▲0.07 | 97.21 ▲0.62 | 40.94 ▼1.18 |
Activate Account /wp-admin/admin.php?page=inplayer-activate | 838 | 2.07 | 26.08 | 29.03 |
Login /wp-admin/admin.php?page=inplayer-login | 1,023 | 2.08 | 23.95 | 31.39 |
InPlayer PayWall /wp-admin/admin.php?page=inplayer-home | 797 | 2.03 | 24.94 | 23.74 |
Terms & Conditions /wp-admin/admin.php?page=inplayer-terms | 794 | 2.06 | 24.54 | 25.70 |
Uninstaller [IO: ▲0.21MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attentionZombie WordPress options were found after uninstall: 7 options
- The plugin did not uninstall gracefully
- > Error in wp-content/plugins/inplayer-paywall/includes/InPlayerPlugin.php+3
Cannot declare class InPlayerPlugin, because the name is already in use
- The plugin did not uninstall correctly, leaving 65 files (0.21MB) in the plugin directory
- (new file) assets/css/inplayer-admin.css
- (new file) assets/fonts/icoplayer.woff
- (new file) assets/img/inplayer-paypal.png
- (new file) assets/img/inplayer-logo.png
- (new file) assets/fonts/icoplayer.eot
- (new file) assets/fonts/icoplayer.svg
- (new file) assets/img/.directory
- (new file) assets/img/asset-video.svg
- (new file) assets/fonts/icoplayer.ttf
- (new file) assets/img/asset-html.svg
- ...
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/inplayer-paywall/views/text-editor-shortcode.php
- > /wp-content/plugins/inplayer-paywall/views/payments/active-method.php
- > /wp-content/plugins/inplayer-paywall/views/options/countries.php
- 42× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/inplayer-paywall/includes/InPlayerPlugin.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/inplayer-paywall/views/inplayer-injector.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/inplayer-paywall/views/settings-index.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/inplayer-paywall/views/payments/widget-purchases.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/inplayer-paywall/views/payments/widget-balance.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/inplayer-paywall/views/payments/widget-transactions.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/inplayer-paywall/includes/AssetsListTable.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/inplayer-paywall/views/form-options.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/inplayer-paywall/views/item/create-asset.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/inplayer-paywall/views/form-activate.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 27 tag instead of maximum 10
inplayer-paywall/functions.php 92% from 13 tests
"InPlayer Paywall" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("inplayer-paywall.php" instead of "functions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin4,125 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 352 | 376 | 2,348 |
JavaScript | 2 | 172 | 103 | 1,028 |
PO File | 1 | 167 | 215 | 415 |
CSS | 1 | 34 | 6 | 286 |
SVG | 3 | 0 | 0 | 48 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 5 | 83.33% |
Methods | 84 | |
▷ Static methods | 3 | 3.57% |
▷ Public methods | 54 | 64.29% |
▷ Protected methods | 23 | 27.38% |
▷ Private methods | 7 | 8.33% |
Functions | 26 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 26 | 100.00% |
Constants | 20 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 20 | 100.00% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/inplayer-paypal.png | 4.38KB | 2.98KB | ▼ 32.05% |
assets/img/inplayer-logo.png | 6.52KB | 3.23KB | ▼ 50.47% |
assets/img/inplayer-small-logo.png | 0.48KB | 0.57KB | 0.00% |