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.20MB] [CPU: ▼4.71ms] Passed 4 tests
An overview of server-side resources used by HeadlineEnvy - headline testing with Optimizely
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 41.60 ▼2.34 |
Dashboard /wp-admin | 3.57 ▲0.27 | 55.32 ▲3.12 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 47.96 ▼3.76 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 86.24 ▼15.86 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 36.58 ▲3.19 |
Results /wp-admin/admin.php?page=headline-envy-results | 3.44 | 35.66 |
HeadlineEnvy /wp-admin/admin.php?page=headline-envy-settings | 3.44 | 37.59 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HeadlineEnvy - headline testing with Optimizely
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲150 | 13.46 ▼0.75 | 11.15 ▲9.52 | 45.04 ▲6.83 |
Dashboard /wp-admin | 2,231 ▲54 | 5.49 ▼0.17 | 84.73 ▼6.88 | 43.71 ▼1.50 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 1.97 ▼0.05 | 37.11 ▼1.34 | 36.43 ▼3.79 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 23.25 ▲0.02 | 650.08 ▲42.89 | 55.24 ▲5.59 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.22 ▲0.06 | 100.51 ▼7.48 | 47.97 ▼3.62 |
Results /wp-admin/admin.php?page=headline-envy-results | 822 | 2.06 | 27.49 | 25.80 |
HeadlineEnvy /wp-admin/admin.php?page=headline-envy-settings | 883 | 2.06 | 25.79 | 31.76 |
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
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-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/headlineenvy/components/templates/title-ui.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/headlineenvy/components/class-headline-envy.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/headlineenvy/components/templates/results.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/headlineenvy/components/templates/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/headlineenvy/components/templates/credits.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: headline, ab testing, post, page, testing...
headlineenvy/headlineenvy.php Passed 13 tests
Analyzing the main PHP file in "HeadlineEnvy - headline testing with Optimizely" version 1.0.2
48 characters long description:
Leverages Optimizely to A/B test post headlines.
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 plugin1,760 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 306 | 379 | 1,371 |
CSS | 2 | 3 | 0 | 217 |
JavaScript | 6 | 45 | 14 | 143 |
Markdown | 1 | 4 | 0 | 16 |
XML | 1 | 0 | 0 | 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.43 |
Average class complexity | 48.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 73 | 93.59% |
▷ Protected methods | 3 | 3.85% |
▷ Private methods | 2 | 2.56% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
components/img/funnelenvy-logo.png | 1.90KB | 2.43KB | 0.00% |