Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.46MB] [CPU: ▲6.14ms] Passed 4 tests
An overview of server-side resources used by Simple Content Adder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.77 ▲1.31 | 48.07 ▲10.27 |
Dashboard /wp-admin | 4.80 ▲1.49 | 59.67 ▲12.67 |
Posts /wp-admin/edit.php | 4.91 ▲1.55 | 50.05 ▼1.10 |
Add New Post /wp-admin/post-new.php | 7.45 ▲1.56 | 90.44 ▲2.73 |
Media Library /wp-admin/upload.php | 4.73 ▲1.50 | 48.04 ▲16.32 |
Dashboard /wp-admin/admin.php?page=sca_dashboard_admin_page | 4.68 | 39.91 |
Add New /wp-admin/post-new.php?post_type=sca_content | 4.96 | 54.13 |
Added Content /wp-admin/edit.php?post_type=sca_content | 4.76 | 42.03 |
Server storage [IO: ▲3.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 151 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Content Adder
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.43 ▼0.30 | 1.77 ▼0.02 | 43.77 ▼2.47 |
Dashboard /wp-admin | 2,224 ▲44 | 5.58 ▼0.06 | 84.88 ▼5.71 | 36.50 ▼5.81 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.04 ▲0.05 | 33.59 ▼1.73 | 32.69 ▼5.13 |
Add New Post /wp-admin/post-new.php | 6,674 ▲5,148 | 27.54 ▲3.87 | 1,002.53 ▲304.10 | 42.20 ▼17.29 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.24 ▲0.06 | 104.48 ▼5.82 | 44.90 ▼0.16 |
Dashboard /wp-admin/admin.php?page=sca_dashboard_admin_page | 888 | 2.02 | 25.74 | 30.62 |
Add New /wp-admin/post-new.php?post_type=sca_content | 2,911 | 9.66 | 279.39 | 59.87 |
Added Content /wp-admin/edit.php?post_type=sca_content | 1,098 | 1.97 | 31.90 | 29.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following
- 42× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/simple-content-adder/lib/advanced-custom-fields/core/fields/taxonomy.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/simple-content-adder/lib/advanced-custom-fields/core/fields/password.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-content-adder/lib/advanced-custom-fields/core/controllers/export.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-content-adder/lib/advanced-custom-fields/core/controllers/location.php:25
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/simple-content-adder/lib/advanced-custom-fields/core/fields/tab.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-content-adder/simple-content-adder.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-content-adder/lib/advanced-custom-fields/core/controllers/addons.php:28
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/simple-content-adder/lib/advanced-custom-fields/core/fields/number.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-content-adder/lib/advanced-custom-fields/core/controllers/field_group.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/simple-content-adder/lib/advanced-custom-fields/core/views/meta_box_options.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 11 tag instead of maximum 10
simple-content-adder/simple-content-adder.php Passed 13 tests
The primary PHP file in "Simple Content Adder" version 1.0 is used by WordPress to initiate all plugin functionality
100 characters long description:
Add custom content to your posts, pages and/or footer, without the need to update each post or page.
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
Everything looks great! No dangerous files found in this plugin38,543 lines of code in 92 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 23 | 9,297 | 13,652 | 20,445 |
PHP | 44 | 4,107 | 4,589 | 9,537 |
JavaScript | 19 | 3,748 | 2,679 | 6,208 |
CSS | 6 | 695 | 380 | 2,353 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 24.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 4.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 272 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 272 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 54 | |
▷ Named functions | 54 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
21 PNG files occupy 0.20MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/advanced-custom-fields/images/sprite.png | 5.94KB | 2.82KB | ▼ 52.51% |
lib/advanced-custom-fields/core/fields/date_picker/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/advanced-custom-fields/images/arrows@2x.png | 0.84KB | 0.88KB | 0.00% |
lib/advanced-custom-fields/core/fields/date_picker/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/advanced-custom-fields/screenshot-4.png | 25.14KB | 5.24KB | ▼ 79.16% |