Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.02ms] Passed 4 tests
Server-side resources used by WP Sheridan Password Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.48 ▼5.92 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.18 ▼4.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.81 ▼2.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.89 ▼11.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.38 ▼1.05 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Sheridan Password Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 14.48 ▼0.26 | 1.86 ▼0.20 | 50.49 ▲5.43 |
Dashboard /wp-admin | 2,206 ▲21 | 4.86 ▼0.09 | 104.39 ▼9.65 | 36.83 ▼9.31 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.03 | 36.48 ▼0.14 | 35.62 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.35 ▲0.16 | 650.15 ▼22.55 | 52.25 ▲5.58 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.29 ▲0.05 | 97.11 ▼23.40 | 41.38 ▼5.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-sheridan-password-generator/wp-sheridan-password-generator.php:57
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-sheridan-password-generator/wp-sheridan-password-generator.php on line 54
- > 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 88% 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 to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-sheridan-password-generator ===
) - Screenshots: Please add images for these screenshots: #1 (This is the screenshot of the initial page allowing password generation options to be selected.), #2 (This is the screenshot of the generated password list.)
wp-sheridan-password-generator/wp-sheridan-password-generator.php Passed 13 tests
The principal PHP file in "WP Sheridan Password Generator" v. 1.02 is loaded by WordPress automatically on each request
87 characters long description:
Allows for a random password generator to be embedded in to your pages with a shortcode
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin363 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 50 | 174 | 315 |
HTML | 1 | 0 | 0 | 48 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 7.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 87.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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