Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼1.83ms] Passed 4 tests
An overview of server-side resources used by iSoftware Blocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 43.44 ▲3.80 |
Dashboard /wp-admin | 3.56 ▲0.26 | 55.16 ▲8.88 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 49.01 ▼7.09 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 93.56 ▼8.54 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 41.69 ▲4.50 |
Add New /wp-admin/post-new.php?post_type=block | 3.61 | 53.16 |
Settings /wp-admin/edit.php?post_type=block&page=settings | 3.43 | 42.80 |
Blocks /wp-admin/edit.php?post_type=block | 3.53 | 42.93 |
Regions /wp-admin/edit-tags.php?taxonomy=block_region&post_type=block | 3.48 | 37.20 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_isw_block_widget |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by iSoftware Blocks
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.28 ▼1.02 | 1.86 ▼0.03 | 43.26 ▲2.03 |
Dashboard /wp-admin | 2,244 ▲56 | 5.78 ▲0.87 | 114.39 ▲7.66 | 42.64 ▼3.38 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 1.99 ▼0.02 | 34.91 ▼6.08 | 33.76 ▼4.93 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.17 ▲0.09 | 669.38 ▼9.09 | 56.78 ▼9.01 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.25 ▲0.01 | 100.99 ▼7.90 | 44.50 ▼0.83 |
Add New /wp-admin/post-new.php?post_type=block | 2,362 | 7.62 | 173.10 | 70.34 |
Settings /wp-admin/edit.php?post_type=block&page=settings | 983 | 2.18 | 24.03 | 30.25 |
Blocks /wp-admin/edit.php?post_type=block | 1,107 | 1.93 | 31.05 | 31.09 |
Regions /wp-admin/edit-tags.php?taxonomy=block_region&post_type=block | 1,303 | 2.14 | 27.24 | 30.02 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_isw_block_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/edit.php?post_type=block&page=settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=block&page=settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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: Call to undefined function plugins_url() in wp-content/plugins/isw-blocks/isw-blocks.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/isw-blocks/classes/class-isw-blocks.php:35
- > PHP Fatal error
Uncaught Error: Class 'ISWOptionsPage' not found in wp-content/plugins/isw-blocks/classes/class-isw-block-options-page.php:9
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== isw-blocks ===
) - Tags: Too many tags (25 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please add images for these screenshots: #1 (The Settings Page), #2 (The Block Management Page), #3 (The Block Edit Page), #4 (The Widgets Page)
isw-blocks/isw-blocks.php Passed 13 tests
Analyzing the main PHP file in "iSoftware Blocks" version 1.2.1
64 characters long description:
This plugin lets you create your own reusable blocks of content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,696 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 265 | 123 | 1,020 |
PO File | 2 | 149 | 164 | 360 |
CSS | 3 | 37 | 8 | 286 |
JavaScript | 1 | 6 | 0 | 18 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 33.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 54 | |
▷ Static methods | 2 | 3.70% |
▷ Public methods | 35 | 64.81% |
▷ Protected methods | 15 | 27.78% |
▷ Private methods | 4 | 7.41% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
12 PNG files occupy 0.24MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon16.png | 0.42KB | 0.35KB | ▼ 15.02% |
screenshot-3.png | 70.12KB | 31.08KB | ▼ 55.68% |
img/menu.png | 0.64KB | 0.53KB | ▼ 17.25% |
screenshot-2.png | 59.10KB | 24.68KB | ▼ 58.23% |
img/menu-2x.png | 1.85KB | 1.60KB | ▼ 13.52% |