Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.66ms] Passed 4 tests
A check of server-side resources used by Family Friendly
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.44 ▲7.89 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.84 ▼2.53 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.78 ▼4.12 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.30 ▼12.08 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.66 ▲4.11 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_family-friendly-widget |
family-friendly-options |
Browser metrics Passed 4 tests
Checking browser requirements for Family Friendly
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.51 ▼0.87 | 1.92 ▲0.20 | 42.76 ▲1.02 |
Dashboard /wp-admin | 2,212 ▲24 | 5.78 ▼0.14 | 93.16 ▼7.96 | 38.82 ▼4.89 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.05 ▲0.05 | 39.21 ▼1.93 | 34.78 ▼1.92 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 22.94 ▼0.46 | 664.94 ▲17.85 | 55.81 ▼2.61 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.18 ▼0.05 | 99.31 ▲4.40 | 45.81 ▲2.40 |
Family Friendly /wp-admin/options-general.php?page=Family Friendly | 1,037 | 2.03 | 25.00 | 25.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_family-friendly-widget
- family-friendly-options
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function family_friendly_count_affected_posts() in wp-content/plugins/family-friendly/family-friendly-options-plugin.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/family-friendly/family-friendly-widget.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: filter, family, sfw
family-friendly/family-friendly.php Passed 13 tests
The main file in "Family Friendly" v. 1.03 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
Keep things family friendly. Allow users to select age ratings for content
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin554 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 107 | 130 | 541 |
CSS | 2 | 5 | 6 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 5.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/18.png | 3.59KB | 2.50KB | ▼ 30.43% |
img/U.png | 3.81KB | 2.33KB | ▼ 38.83% |
img/PG.png | 3.98KB | 2.55KB | ▼ 35.98% |