Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼259.73ms] Passed 4 tests
An overview of server-side resources used by Really Simple GA
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 42.58 ▲22.21 |
Dashboard /wp-admin | 3.08 ▲0.02 | 42.20 ▼1.58 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 42.59 ▼1.94 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 90.82 ▼1,026.83 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 29.83 ▼8.57 |
Really Simple GA /wp-admin/options-general.php?page=really-simple-ga | 2.97 | 28.75 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Really Simple GA
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,654 ▲49 | 16.21 ▲0.66 | 7.90 ▲0.40 | 50.11 ▲4.79 |
Dashboard /wp-admin | 2,937 ▲84 | 5.90 ▲0.06 | 137.42 ▲1.56 | 100.72 ▲2.82 |
Posts /wp-admin/edit.php | 2,711 ▲8 | 2.70 ▲0.01 | 65.40 ▲3.41 | 89.59 ▲0.87 |
Add New Post /wp-admin/post-new.php | 3,708 ▲2,055 | 14.94 ▼3.85 | 412.69 ▲47.16 | 110.74 ▲4.92 |
Media Library /wp-admin/upload.php | 1,774 ▲5 | 5.01 ▲0.02 | 150.65 ▼1.38 | 115.22 ▼3.82 |
Really Simple GA /wp-admin/options-general.php?page=really-simple-ga | 1,031 | 2.09 | 53.00 | 64.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=really-simple-ga
- > Notice in wp-content/plugins/really-simple-ga/admin-screen.php+37
Undefined variable: success
- > GET request to /wp-admin/options-general.php?page=really-simple-ga
- > Notice in wp-content/plugins/really-simple-ga/admin-screen.php+38
Undefined variable: error
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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/really-simple-ga/admin-screen.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Screenshot #3 (Check in frontend side.) image missing
really-simple-ga/really-simple-ga.php Passed 13 tests
"Really Simple GA" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
It will easily add Google Analytics code to site without adding extra codes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin93 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 16 | 19 | 93 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin