Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.71ms] Passed 4 tests
This is a short check of server-side resources used by Nastříkej
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.30 ▲2.13 |
Dashboard /wp-admin | 3.34 ▼0.00 | 48.30 ▼7.88 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 42.97 ▲2.39 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 88.30 ▼3.49 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 38.45 ▲3.81 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_nastrikejpositions |
widget_nastrikejcompetitions |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Nastříkej
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.28 ▼0.07 | 1.76 ▲0.25 | 45.34 ▲7.68 |
Dashboard /wp-admin | 2,192 ▲11 | 5.54 ▼0.18 | 87.66 ▼17.41 | 42.05 ▲1.59 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.96 ▼0.03 | 35.91 ▲1.06 | 34.78 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.09 ▲0.09 | 662.12 ▲38.14 | 58.63 ▲10.53 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.17 ▲0.01 | 104.01 ▼5.32 | 45.64 ▲3.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_nastrikejcompetitions
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- widget_nastrikejpositions
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nastrikejcz/nastrikej.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/nastrikejcz/views/admin-competitions.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/nastrikejcz/views/admin-positions.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (2.) image not found
nastrikejcz/nastrikej.php 92% from 13 tests
The main file in "Nastříkej" v. 0.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("nastrikejcz.php" instead of "nastrikej.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin323 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 64 | 14 | 323 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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