Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼141.72ms] Passed 4 tests
This is a short check of server-side resources used by SpeakUp! Email Petitions Importer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 35.54 ▲2.46 |
Dashboard /wp-admin | 3.06 ▲0.00 | 50.01 ▲2.02 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 46.75 ▼3.34 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 92.49 ▼561.60 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 31.29 ▼3.95 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for SpeakUp! Email Petitions Importer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲42 | 15.91 ▲0.44 | 11.14 ▲1.79 | 50.09 ▲2.72 |
Dashboard /wp-admin | 2,970 ▲36 | 5.90 ▼0.33 | 148.38 ▼1.13 | 110.55 ▼8.06 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 65.30 ▼2.13 | 88.57 ▲5.11 |
Add New Post /wp-admin/post-new.php | 1,615 ▼2,019 | 21.49 ▲6.51 | 284.36 ▼222.86 | 103.14 ▼4.22 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.01 | 160.04 ▲0.94 | 116.96 ▲6.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% 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
- 2× 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/speakup-email-petitions-importer/speakup-email-importer.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/speakup-email-petitions-importer/form.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: Screenshot #1 (Import-form) image not found
speakup-email-petitions-importer/speakup-email-importer.php 92% from 13 tests
The primary PHP file in "SpeakUp! Email Petitions Importer" version 1.3.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("speakup-email-petitions-importer.php" instead of "speakup-email-importer.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
Everything looks great! No dangerous files found in this plugin261 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 14 | 26 | 195 |
PO File | 1 | 15 | 15 | 47 |
JavaScript | 1 | 7 | 0 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 6.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected