Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼11.24ms] Passed 4 tests
Server-side resources used by amateur tv
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.22 ▼1.78 |
Dashboard /wp-admin | 3.42 ▲0.07 | 47.32 ▼20.11 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 52.58 ▼0.41 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 85.87 ▼22.65 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.49 ▲0.10 |
Amateur TV /wp-admin/options-general.php?page=amateurtv_header | 3.31 | 32.48 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
amateur tv: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.59 ▼1.09 | 1.82 ▼0.19 | 39.20 ▼3.63 |
Dashboard /wp-admin | 2,213 ▲25 | 5.85 ▼0.00 | 102.28 ▼9.53 | 39.39 ▼2.76 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.04 | 39.29 ▲2.01 | 35.53 ▼1.07 |
Add New Post /wp-admin/post-new.php | 6,366 ▲4,846 | 22.66 ▼0.66 | 834.25 ▲185.63 | 60.62 ▲9.44 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.17 ▼0.19 | 94.50 ▼4.05 | 41.18 ▼3.87 |
Amateur TV /wp-admin/options-general.php?page=amateurtv_header | 785 | 2.06 | 26.65 | 25.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% 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 50% 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
Please fix the following
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/amateur-tv/includes/camlist.php
- > /wp-content/plugins/amateur-tv/includes/iframe.php
- > /wp-content/plugins/amateur-tv/includes/admin.php
- > /wp-content/plugins/amateur-tv/amateur-tv.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: amateur, cams, adult, webcam, cam...
amateur-tv/amateur-tv.php Passed 13 tests
The entry point to "amateur tv" version 1.2.0 is a PHP file that has certain tags in its header comment area
117 characters long description:
Create your own amateur cam affiliate site, thanks to amateur.tv. Online cams feed and live cams viewer ready to use.
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
Good job! No executable or dangerous file extensions detected29,076 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 27,757 |
JavaScript | 6 | 54 | 87 | 795 |
PHP | 5 | 83 | 145 | 300 |
Sass | 2 | 17 | 0 | 117 |
PO File | 1 | 39 | 39 | 105 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 6.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
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 | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 11.22KB | 5.74KB | ▼ 48.88% |
assets/banner-772x250.png | 167.66KB | 51.60KB | ▼ 69.22% |
assets/icon-256x256.png | 43.33KB | 22.07KB | ▼ 49.08% |