Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼146.74ms] Passed 4 tests
This is a short check of server-side resources used by Simple Google Content Experiments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 37.05 ▲13.42 |
Dashboard /wp-admin | 3.11 ▲0.06 | 45.97 ▼7.99 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 51.38 ▲4.76 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 95.79 ▼583.10 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 34.47 ▼0.62 |
Simple Google Content Experiments Changelog /wp-admin/admin.php?page=pj-sgce-changelog | 3.03 | 31.20 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Simple Google Content Experiments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.80 ▲0.41 | 8.37 ▼5.98 | 48.39 ▼0.82 |
Dashboard /wp-admin | 2,970 ▲34 | 5.88 ▼0.26 | 144.34 ▼29.90 | 112.16 ▼9.20 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 76.34 ▲8.21 | 86.72 ▼7.30 |
Add New Post /wp-admin/post-new.php | 1,672 ▲57 | 18.80 ▼2.62 | 398.82 ▲102.43 | 119.51 ▲7.78 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.10 ▲0.05 | 152.55 ▼21.59 | 110.90 ▼4.84 |
Simple Google Content Experiments Changelog /wp-admin/admin.php?page=pj-sgce-changelog | 1,309 | 2.21 | 56.20 | 70.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/simple-google-content-experiments/views/changelog.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-google-content-experiments/lib/changelog.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-google-content-experiments/simple-google-content-experiments.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 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: google analytics, content experiments, ab testing
simple-google-content-experiments/simple-google-content-experiments.php 92% from 13 tests
"Simple Google Content Experiments" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
There were no executable files found in this plugin369 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 62 | 68 | 176 |
SVG | 3 | 0 | 1 | 168 |
CSS | 1 | 6 | 0 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 11 | 91.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin