Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.47ms] Passed 4 tests
An overview of server-side resources used by Gravitate Automated Tester
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.05 ▼0.28 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.69 ▼8.54 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.77 ▼0.81 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 93.02 ▼0.23 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.12 ▲1.25 |
Gravitate Tester /wp-admin/tools.php?page=gravitate_tester | 3.19 | 32.68 |
Server storage [IO: ▲0.08MB] [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: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
gravitate_tester_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gravitate Automated Tester
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.45 ▲0.05 | 1.82 ▼0.13 | 40.72 ▼3.97 |
Dashboard /wp-admin | 2,213 ▲25 | 6.06 ▲1.15 | 113.58 ▼2.88 | 42.71 ▼1.92 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.09 ▲0.09 | 40.67 ▲4.61 | 35.00 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,545 ▲25 | 18.20 ▼5.31 | 593.46 ▼69.51 | 49.69 ▼7.42 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▲0.01 | 96.10 ▼3.43 | 41.67 ▼2.12 |
Gravitate Tester /wp-admin/tools.php?page=gravitate_tester | 1,518 | 1.84 | 30.26 | 35.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'GRAV_TESTS' does not have a method 'deactivate'
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- gravitate_tester_settings
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=gravitate_tester
- > Notice in wp-content/plugins/gravitate-automated-tester/gravitate-tester.php+550
Undefined index: section
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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/gravitate-automated-tester/gravitate-tester.php:11
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Contributors: Contributors not specified
gravitate-automated-tester/gravitate-tester.php 92% from 13 tests
"Gravitate Automated Tester" version 1.4.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gravitate-automated-tester.php" instead of "gravitate-tester.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
Good job! No executable or dangerous file extensions detected2,828 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 554 | 242 | 2,828 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 20.88 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 36 | 24.32% |
▷ Public methods | 137 | 92.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 7.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin