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.79MB] [CPU: ▲1.10ms] Passed 4 tests
An overview of server-side resources used by Orphans
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.80 | 42.51 ▼0.79 |
Dashboard /wp-admin | 4.09 ▲0.79 | 52.94 ▲2.65 |
Posts /wp-admin/edit.php | 4.14 ▲0.79 | 52.07 ▲4.27 |
Add New Post /wp-admin/post-new.php | 6.67 ▲0.79 | 95.96 ▲5.79 |
Media Library /wp-admin/upload.php | 4.01 ▲0.79 | 40.70 ▼1.75 |
Orphans /wp-admin/themes.php?page=iworks_orphan_index | 4.15 | 38.74 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 24 new options
New WordPress options |
---|
iworks_orphan_attributes |
db_upgraded |
widget_recent-comments |
iworks_orphan_menu_title |
iworks_orphan_get_the_author_description |
iworks_orphan_language |
iworks_orphan_the_title |
widget_theysaidso_widget |
can_compress_scripts |
iworks_orphan_taxonomies |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Orphans
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.72 ▲0.37 | 1.68 ▼0.11 | 36.61 ▼6.68 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▼0.02 | 92.11 ▼13.62 | 42.39 ▼4.80 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.07 | 39.48 ▲1.86 | 35.42 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.30 ▲0.30 | 636.24 ▼51.19 | 56.31 ▲8.76 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.20 ▼0.02 | 95.58 ▼12.12 | 42.53 ▼4.22 |
Orphans /wp-admin/themes.php?page=iworks_orphan_index | 1,778 | 3.02 | 89.63 | 48.87 |
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 were found after uninstall: 20 options
- iworks_orphan_taxonomies
- iworks_orphan_widget_text
- iworks_orphan_attributes
- iworks_orphan_widget_block_content
- iworks_orphan_widget_title
- iworks_orphan_post_type
- widget_recent-posts
- widget_theysaidso_widget
- iworks_orphan_language
- iworks_orphan_term_description
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/sierotki/sierotki.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #2, #3, #4 in sierotki/assets to your readme.txt
sierotki/sierotki.php Passed 13 tests
The primary PHP file in "Orphans" version 3.2.5 is used by WordPress to initiate all plugin functionality
44 characters long description:
Implement Polish grammar rules with orphans.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected5,224 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 521 | 1,464 | 4,568 |
JavaScript | 4 | 50 | 88 | 336 |
CSS | 6 | 23 | 9 | 181 |
Sass | 1 | 8 | 0 | 138 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 193)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 184.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 392.00 |
Average method complexity | 5.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 193.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 198 | |
▷ Static methods | 2 | 1.01% |
▷ Public methods | 144 | 72.73% |
▷ Protected methods | 18 | 9.09% |
▷ Private methods | 36 | 18.18% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 22 | 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
7 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/iworks/options/assets/styles/images/ui-icons_777777_256x240.png | 3.46KB | 3.80KB | 0.00% |
includes/iworks/options/assets/styles/images/ui-icons_ffffff_256x240.png | 3.54KB | 3.86KB | 0.00% |
includes/iworks/options/assets/styles/images/ui-icons_777620_256x240.png | 3.50KB | 3.82KB | 0.00% |
includes/iworks/options/assets/styles/images/ui-icons_555555_256x240.png | 3.48KB | 3.81KB | 0.00% |
includes/iworks/options/assets/styles/images/ui-icons_444444_256x240.png | 3.50KB | 3.83KB | 0.00% |