Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.52ms] Passed 4 tests
A check of server-side resources used by Uplatnica
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.04 ▼3.18 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.49 ▼3.76 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.14 ▼0.80 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.60 ▼14.34 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.24 ▼0.76 |
Server storage [IO: ▲2.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 8 new options
New WordPress options |
---|
valuta |
widget_recent-comments |
theysaidso_admin_options |
qr_size |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Uplatnica
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲164 | 13.62 ▼0.77 | 8.59 ▲6.95 | 38.40 ▼4.85 |
Dashboard /wp-admin | 2,222 ▲31 | 4.87 ▼0.04 | 115.04 ▲10.69 | 40.41 ▼1.43 |
Posts /wp-admin/edit.php | 2,108 ▲16 | 2.06 ▲0.04 | 43.96 ▲5.14 | 34.64 ▼1.08 |
Add New Post /wp-admin/post-new.php | 1,528 ▲14 | 23.56 ▲5.93 | 696.47 ▲33.42 | 57.47 ▼0.81 |
Media Library /wp-admin/upload.php | 1,398 ▲7 | 4.18 ▼0.01 | 96.29 ▼10.46 | 40.43 ▼6.85 |
Uninstaller [IO: ▲2.31MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attentionZombie WordPress options detected upon uninstall: 8 options
- Incomplete uninstall procedure, leaving 30 files (2.31MB) in the plugin directory
- (new file) admin/css/uplatnica-admin.css
- (new file) banner-772x250.png
- (new file) admin/class-uplatnica-admin.php
- (new file) banner-1544x500.png
- (new file) icon-128x128.png
- (new file) LICENSE.txt
- (new file) admin/js/uplatnica-admin.js
- (new file) README.txt
- (new file) admin/partials/uplatnica-admin-display.php
- (new file) admin/index.php
- ...
- widget_recent-posts
- valuta
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- qr_size
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/uplatnica/public/partials/uplatnica-public-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uplatnica/admin/partials/uplatnica-admin-display.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
uplatnica/uplatnica.php Passed 13 tests
The principal PHP file in "Uplatnica" v. 1.0.1 is loaded by WordPress automatically on each request
49 characters long description:
A Short Plugin description. Keep it to the point.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,420 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 207 | 765 | 693 |
CSS | 2 | 101 | 5 | 482 |
JavaScript | 2 | 34 | 13 | 244 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 8.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 8 | 23.53% |
▷ Public methods | 23 | 67.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 32.35% |
Functions | 9 | |
▷ Named functions | 9 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.67MB with 0.36MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon-128x128.png | 12.72KB | 7.58KB | ▼ 40.42% |
banner-772x250.png | 161.74KB | 51.85KB | ▼ 67.95% |
icon-256x256.png | 31.63KB | 18.21KB | ▼ 42.44% |
banner-1544x500.png | 477.61KB | 177.06KB | ▼ 62.93% |