Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲0.99ms] Passed 4 tests
An overview of server-side resources used by Partnerský systém Martinus
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.55 ▲2.07 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.74 ▼1.08 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 48.54 ▲0.33 |
Add New Post /wp-admin/post-new.php | 7.22 ▲1.34 | 108.39 ▲17.15 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.21 ▲2.64 |
Martinus PP /wp-admin/options-general.php?page=martinus_pp | 3.25 | 30.66 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_martinus-pp |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Partnerský systém Martinus
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲109 | 13.29 ▼1.08 | 3.09 ▲1.46 | 44.82 ▲7.10 |
Dashboard /wp-admin | 2,207 ▲21 | 5.77 ▲0.64 | 105.16 ▼2.51 | 40.58 ▼0.56 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.06 | 40.02 ▲4.68 | 35.35 ▲1.97 |
Add New Post /wp-admin/post-new.php | 6,253 ▲4,734 | 20.72 ▼2.38 | 933.33 ▲260.87 | 38.07 ▼17.06 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.23 ▲0.04 | 106.25 ▲9.43 | 44.99 ▼2.91 |
Martinus PP /wp-admin/options-general.php?page=martinus_pp | 799 | 2.06 | 28.92 | 25.99 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_martinus-pp
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/martinus-partnersky-system/martinus-pp.php:30
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: martinus
martinus-partnersky-system/martinus-pp.php 92% from 13 tests
The entry point to "Partnerský systém Martinus" version 1.7.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("martinus-partnersky-system.php" instead of "martinus-pp.php")
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
No dangerous file extensions were detected9,851 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 9,499 |
JavaScript | 5 | 22 | 50 | 320 |
CSS | 1 | 6 | 5 | 31 |
PHP | 1 | 0 | 0 | 1 |
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.34 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
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 |
js/martinus-16x16.png | 3.29KB | 0.71KB | ▼ 78.48% |