Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼171.76ms] Passed 4 tests
An overview of server-side resources used by Piyasalar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 33.46 ▼1.84 |
Dashboard /wp-admin | 3.07 ▲0.01 | 48.90 ▲0.04 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.22 ▼1.42 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 88.71 ▼683.81 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 35.43 ▲9.63 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_piyasalar_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Piyasalar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,683 ▲87 | 16.16 ▲0.57 | 9.50 ▲0.55 | 41.62 ▼6.72 |
Dashboard /wp-admin | 2,963 ▲29 | 5.92 ▼0.10 | 155.87 ▼2.28 | 114.34 ▲4.62 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 62.25 ▼5.30 | 97.89 ▲8.86 |
Add New Post /wp-admin/post-new.php | 1,581 ▼34 | 20.37 ▼1.01 | 401.53 ▲86.62 | 109.87 ▲1.26 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▲0.01 | 149.90 ▼2.10 | 113.83 ▲5.75 |
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: 1 option
- widget_piyasalar_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/piyasalar/include/widget_piyasalar.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/piyasalar/piyasalar.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Bileşen / Widget)
piyasalar/piyasalar.php 85% from 13 tests
"Piyasalar" version 0.1.2-beta's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "0.1.2-beta")
- Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)
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 plugin111 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 56 | 124 | 68 |
CSS | 1 | 11 | 4 | 43 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin