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.10MB] [CPU: ▼6.19ms] Passed 4 tests
Server-side resources used by Pin Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 46.42 ▲0.85 |
Dashboard /wp-admin | 3.42 ▲0.07 | 51.21 ▼12.72 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 53.87 ▲4.59 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 88.75 ▼17.49 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 45.26 ▲6.82 |
Settings /wp-admin/admin.php?page=pin-generator-settings | 3.34 | 36.85 |
Server storage [IO: ▲1.74MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
pin_generator_access_key |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
pin_generator_design_settings |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Pin Generator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲121 | 14.39 ▼0.33 | 12.13 ▲10.37 | 47.41 ▲3.59 |
Dashboard /wp-admin | 2,231 ▲54 | 5.97 ▲0.40 | 92.99 ▼2.94 | 40.06 ▼3.38 |
Posts /wp-admin/edit.php | 2,182 ▲79 | 2.31 ▲0.30 | 43.05 ▲0.55 | 37.48 ▲1.59 |
Add New Post /wp-admin/post-new.php | 1,555 ▲18 | 23.57 ▲5.29 | 665.97 ▼22.68 | 36.78 ▼34.66 |
Media Library /wp-admin/upload.php | 1,439 ▲45 | 4.41 ▲0.23 | 105.81 ▲3.92 | 49.21 ▲6.66 |
Settings /wp-admin/admin.php?page=pin-generator-settings | 1,146 | 2.43 | 39.10 | 39.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- widget_recent-comments
- pin_generator_design_settings
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- pin_generator_access_key
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pin-generator/templates/admin/settings-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pin-generator/frontend/pin-generator-insert-pins.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pin-generator/includes/pin-generator-scripts.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pin-generator/includes/pin-generator-options.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pin-generator/includes/pin-generator-activation-hook.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pin-generator/includes/pin-generator-menus.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pin-generator/includes/pin-generator-settings-fields.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pin-generator/includes/pin-generator-post-column.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pin-generator/includes/pin-generator-styles.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: pin generator, pinterest, image generator
pin-generator/pin-generator.php 92% from 13 tests
The primary PHP file in "Pin Generator" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin747 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 160 | 113 | 586 |
JavaScript | 1 | 11 | 10 | 86 |
CSS | 2 | 18 | 1 | 75 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 1.51MB with 0.34MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshots/plugin-screenshot-1.png | 408.70KB | 434.11KB | 0.00% |
images/screenshots/plugin-screenshot-3.png | 770.31KB | 243.98KB | ▼ 68.33% |
images/screenshots/plugin-screenshot-2.png | 363.98KB | 388.77KB | 0.00% |