Benchmarks
Plugin footprint 83% from 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.01MB] [CPU: ▼1.55ms] Passed 4 tests
Server-side resources used by Find Your Reps
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.09 ▲1.01 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.57 ▼1.15 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.72 ▼5.20 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.01 | 109.96 ▲10.08 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 33.14 ▼0.84 |
Find Your Reps /wp-admin/options-general.php?page=fyr_slug | 3.19 | 29.71 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Find Your Reps
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.21 ▼1.16 | 1.73 ▲0.11 | 38.60 ▼5.88 |
Dashboard /wp-admin | 2,210 ▲28 | 4.86 ▼0.99 | 109.09 ▲2.78 | 40.69 ▼2.94 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.05 | 39.40 ▲3.70 | 34.49 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.25 ▲0.15 | 636.17 ▼30.48 | 64.80 ▲7.55 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.21 ▼0.00 | 95.14 ▼10.58 | 45.01 ▲0.44 |
Find Your Reps /wp-admin/options-general.php?page=fyr_slug | 812 | 2.03 | 28.32 | 26.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=fyr_slug
- > Notice in wp-content/plugins/find-your-reps/includes/admin.php+43
Trying to access array offset on value of type bool
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/find-your-reps/find-your-reps.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/find-your-reps/includes/admin.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: state legislature, legislator, find state legislators, find state representatives, representative...
find-your-reps/find-your-reps.php Passed 13 tests
This is the main PHP file of "Find Your Reps" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
80 characters long description:
This plugin finds your state representatives by street address and returns their
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected240 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 49 | 19 | 137 |
JavaScript | 1 | 29 | 2 | 85 |
CSS | 1 | 0 | 3 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin