Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.23ms] Passed 4 tests
Analyzing server-side resources used by Motivation Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 46.16 ▲0.54 |
Dashboard /wp-admin | 3.38 ▲0.07 | 56.46 ▲2.42 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.35 ▲1.34 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.60 ▼9.16 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.35 ▲2.35 |
Settings /wp-admin/admin.php?page=motivation-generator | 3.28 | 35.15 |
Posters /wp-admin/admin.php?page=motivation-generator-posters | 3.28 | 36.05 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 14 new options
New tables |
---|
wp_mot_gen |
New WordPress options |
---|
motgen_maintext_font_size |
db_upgraded |
can_compress_scripts |
motgen_default_upload_path |
motgen_destination_folder |
motgen_thank_you_page |
motgen_version |
widget_recent-comments |
motgen_default_upload_url |
motgen_subtext_font_size |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Motivation Generator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲32 | 14.39 ▲1.12 | 1.73 ▼3.12 | 43.75 ▲4.52 |
Dashboard /wp-admin | 2,222 ▲42 | 5.64 ▼0.01 | 90.13 ▼2.21 | 37.69 ▼2.58 |
Posts /wp-admin/edit.php | 2,127 ▲30 | 2.00 ▼0.01 | 36.18 ▲0.09 | 34.97 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,426 ▼100 | 18.50 ▼4.51 | 638.38 ▼60.20 | 61.85 ▲9.44 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.20 ▼0.17 | 101.21 ▼3.41 | 44.33 ▼2.54 |
Settings /wp-admin/admin.php?page=motivation-generator | 882 | 2.00 | 26.99 | 26.79 |
Posters /wp-admin/admin.php?page=motivation-generator-posters | 700 | 1.51 | 6.75 | 25.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function motgen_get_posters() in wp-content/plugins/motivation-generator/motivation-generator-admin-posters.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/motivation-generator/motivation-generator.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/motivation-generator/motivation-generator-admin-settings.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=motivation-generator
- > Network (severe)
https://www.paypalobjects.com/ru_RU/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: motivational, poster, motivation, motivational poster, posters...
motivation-generator/motivation-generator.php Passed 13 tests
This is the main PHP file of "Motivation Generator" version 2.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Allows to create (de)motivational posters.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected691 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 135 | 119 | 451 |
JavaScript | 2 | 62 | 76 | 179 |
CSS | 2 | 13 | 0 | 61 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 26 | |
▷ Named functions | 26 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/delete_button.png | 0.65KB | 0.54KB | ▼ 17.01% |