Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼294.03ms] Passed 4 tests
Server-side resources used by WCA: Google Tools Extension
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 53.07 ▲2.21 |
Dashboard /wp-admin | 3.41 ▲0.00 | 31.87 ▼1.53 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 37.91 ▼18.50 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 89.67 ▼1,154.72 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 23.84 ▼1.36 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WCA: Google Tools Extension
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,767 ▲21 | 16.22 ▲0.25 | 5.54 ▼1.32 | 2.05 ▼0.13 |
Dashboard /wp-admin | 2,892 ▲34 | 6.13 ▼0.04 | 117.07 ▼19.81 | 152.50 ▼15.05 |
Posts /wp-admin/edit.php | 2,688 ▲3 | 3.24 ▲0.01 | 62.85 ▼2.84 | 140.74 ▼7.84 |
Add New Post /wp-admin/post-new.php | 1,661 ▼112 | 16.24 ▼5.16 | 432.00 ▼37.94 | 156.53 ▼2.63 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.52 ▲0.05 | 157.15 ▲9.17 | 184.48 ▼2.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'WeCodeArt\\Integration' not found in wp-content/plugins/wca-google-tools-extension/includes/class-google.php:35
- > PHP Fatal error
Trait 'WeCodeArt\\Singleton' not found in wp-content/plugins/wca-google-tools-extension/includes/class-loader.php on line 26
- > PHP Fatal error
Trait 'WeCodeArt\\Singleton' not found in wp-content/plugins/wca-google-tools-extension/includes/class-i18n.php on line 29
- > 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 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: google analytics, google webmaster tools, google adsense
wca-google-tools-extension/wca-google.php 77% from 13 tests
The main PHP script in "WCA: Google Tools Extension" version 2.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 156 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("wca-google-tools-extension.php" instead of "wca-google.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected731 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 122 | 572 | 365 |
JavaScript | 2 | 85 | 93 | 325 |
PO File | 1 | 8 | 10 | 41 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 3 | 9.68% |
▷ Public methods | 22 | 70.97% |
▷ Protected methods | 3 | 9.68% |
▷ Private methods | 6 | 19.35% |
Functions | 7 | |
▷ Named functions | 2 | 28.57% |
▷ Anonymous functions | 5 | 71.43% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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
No PNG images were found in this plugin