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
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.57ms] Passed 4 tests
An overview of server-side resources used by Hulvire Fotofolio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.97 ▼3.87 |
Dashboard /wp-admin | 3.42 ▲0.12 | 54.41 ▲4.56 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 52.06 ▲1.54 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 85.43 ▼12.52 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 42.55 ▲4.77 |
Pridaj nový /wp-admin/post-new.php?post_type=hulvire_fotofolio | 3.40 | 48.21 |
Hulvire Fotofolio /wp-admin/options-general.php?page=wp_hulvire_fotofolio | 3.30 | 39.81 |
Všetky fotofolio /wp-admin/edit.php?post_type=hulvire_fotofolio | 3.39 | 38.30 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Hulvire Fotofolio
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.64 ▼0.71 | 6.63 ▲4.64 | 39.91 ▼3.13 |
Dashboard /wp-admin | 2,224 ▲33 | 5.88 ▲0.97 | 98.64 ▼10.75 | 74.10 ▲34.19 |
Posts /wp-admin/edit.php | 2,125 ▲39 | 2.00 ▲0.04 | 39.49 ▲3.46 | 34.30 ▼1.33 |
Add New Post /wp-admin/post-new.php | 1,703 ▲175 | 24.50 ▲6.11 | 682.68 ▲80.78 | 51.99 ▲0.38 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.21 ▼0.16 | 97.70 ▼4.60 | 71.40 ▲23.17 |
Pridaj nový /wp-admin/post-new.php?post_type=hulvire_fotofolio | 1,691 | 3.50 | 62.64 | 86.92 |
Hulvire Fotofolio /wp-admin/options-general.php?page=wp_hulvire_fotofolio | 717 | 1.14 | 8.94 | 23.79 |
Všetky fotofolio /wp-admin/edit.php?post_type=hulvire_fotofolio | 1,116 | 1.95 | 33.73 | 30.37 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp_hulvire_fotofolio
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/hulvire-fotofolio/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/hulvire-fotofolio/templates/settings.php(5): do_settings_fields()
#1 wp-content/plugins/hulvire-fotofolio/hulvire-fotofolio-settings.php(190): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): WP_Hulvire_Fotofolio_Settings->plugin_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/hulvire-fotofolio/hulvire-fotofolio.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hulvire-fotofolio/templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hulvire-fotofolio/post-types/hulvire-fotofolio-text-type.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (This is settings of plugin), #2 (This is plugin in wordpress page)
hulvire-fotofolio/hulvire-fotofolio.php 85% from 13 tests
The principal PHP file in "Hulvire Fotofolio" v. 1.5.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: The plugin description must be longer than 10 characters (currently 0 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin748 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 134 | 88 | 425 |
JavaScript | 3 | 71 | 26 | 179 |
CSS | 2 | 28 | 15 | 144 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 19 | |
▷ Static methods | 2 | 10.53% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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/fotofolio-icon-a.png | 0.97KB | 0.15KB | ▼ 84.74% |