Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WP_Rajce_galerie_Options::install() should not be called statically
Server metrics [RAM: ▼0.95MB] [CPU: ▼37.89ms] Passed 4 tests
A check of server-side resources used by WP Rajče galerie
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.35 ▼8.83 |
Dashboard /wp-admin | 3.00 ▼0.31 | 23.97 ▼31.55 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 24.83 ▼27.53 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 24.94 ▼75.38 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 22.96 ▼17.11 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
wp_rajce_galerie_cache_type |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
wp_rajce_galerie_cache_expire |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Rajče galerie
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▲0.06 | 1.69 ▼0.28 | 45.76 ▲3.62 |
Dashboard /wp-admin | 2,202 ▲25 | 5.56 ▲0.02 | 83.06 ▼20.43 | 45.09 ▲1.29 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▲0.00 | 39.03 ▲1.21 | 37.23 ▲0.60 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.38 ▲0.40 | 654.87 ▼20.88 | 55.40 ▲0.98 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.26 ▲0.11 | 104.48 ▼1.56 | 46.12 ▼2.97 |
WP Rajče galerie /wp-admin/WP_Rajce_galerie_Page.php | 26 | 0.42 | 0.09 | 14.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WP_Rajce_galerie_Options::add_menu() should not be called statically
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- wp_rajce_galerie_cache_type
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- wp_rajce_galerie_cache_expire
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'WP_Rajce_galerie_Cache_Interface' not found in wp-content/plugins/wp-rajce-galerie/classes/WP_Rajce_galerie_Cache_File.php:8
- > PHP Fatal error
Uncaught Error: Interface 'WP_Rajce_galerie_Cache_Interface' not found in wp-content/plugins/wp-rajce-galerie/classes/WP_Rajce_galerie_Cache_Transients_API.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/WP_Rajce_galerie_Page.php
- > Network (severe)
wp-admin/WP_Rajce_galerie_Page.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Ukázka vložené galerie), #2 (Ukázka shortcode v editoru stránky)
wp-rajce-galerie/wp-rajce-galerie.php Passed 13 tests
"WP Rajče galerie" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
77 characters long description:
Plugin pro jednoduché zobrazení seznamu fotogalerií uživatele Rajče.net.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin347 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 69 | 160 | 321 |
CSS | 1 | 3 | 0 | 26 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 3 | 8.33% |
▷ Public methods | 23 | 63.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 36.11% |
Functions | 1 | |
▷ Named functions | 1 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.44MB with 0.24MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/background.png | 4.09KB | 2.68KB | ▼ 34.52% |
screenshot-1.png | 411.87KB | 133.90KB | ▼ 67.49% |
screenshot-2.png | 33.35KB | 13.43KB | ▼ 59.73% |