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 gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼14.81ms] Passed 4 tests
Analyzing server-side resources used by Adobe Analytics for WordPress by RepEquity
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▼0.56 | 14.55 ▼28.88 |
Dashboard /wp-admin | 3.49 ▲0.14 | 50.70 ▼15.17 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 53.25 ▲1.47 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 90.52 ▼13.68 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.69 ▼1.49 |
Adobe Analytics /wp-admin/options-general.php?page=adobe_analytics | 3.40 | 34.48 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Adobe Analytics for WordPress by RepEquity
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.30 ▼0.08 | 2.19 ▲0.38 | 41.69 ▼0.62 |
Dashboard /wp-admin | 2,202 ▲28 | 5.64 ▼0.04 | 86.13 ▼4.45 | 39.14 ▼5.44 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.04 ▲0.03 | 39.78 ▲2.48 | 35.26 ▼0.60 |
Add New Post /wp-admin/post-new.php | 6,295 ▲4,759 | 26.34 ▲3.29 | 904.52 ▲231.32 | 77.16 ▲14.31 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.03 | 94.71 ▼7.00 | 40.81 ▼4.47 |
Adobe Analytics /wp-admin/options-general.php?page=adobe_analytics | 1,131 | 2.01 | 29.19 | 31.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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 items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/adobe-analytics/templates/settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/adobe-analytics/adobe_analytics.php:261
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/adobe-analytics/metaboxes/meta_box.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=adobe_analytics
- > Network (severe)
wp-content/plugins/adobe_analytics/templates/assets/admin-styles.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=adobe_analytics
- > Network (severe)
wp-content/plugins/adobe_analytics/templates/assets/admin-scripts.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Requires at least: Invalid version format
- Donate link: Invalid URI ("htpp://repequity.com")
adobe-analytics/adobe_analytics.php 92% from 13 tests
The entry point to "Adobe Analytics for WordPress by RepEquity" version 0.6.8 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("adobe-analytics.php" instead of "adobe_analytics.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,786 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 109 | 227 | 899 |
CSS | 4 | 67 | 65 | 694 |
JavaScript | 3 | 36 | 39 | 193 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 17.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/assets/adobe-analytics.png | 3.47KB | 2.65KB | ▼ 23.66% |
metaboxes/images/chosen-sprite.png | 0.55KB | 0.70KB | 0.00% |
templates/assets/re-horizontal.png | 16.88KB | 6.21KB | ▼ 63.19% |
metaboxes/images/image.png | 2.74KB | 0.10KB | ▼ 96.43% |
metaboxes/images/sprite.png | 6.06KB | 2.18KB | ▼ 64.10% |