Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼294.47ms] Passed 4 tests
Analyzing server-side resources used by IBlocks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.07 | 62.29 ▲10.86 |
Dashboard /wp-admin | 3.44 ▲0.03 | 32.77 ▲0.47 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 39.41 ▲1.10 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 93.77 ▼1,179.83 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 25.61 ▲0.38 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
IBlocks: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,864 ▲110 | 16.33 ▲0.75 | 11.78 ▲6.11 | 17.53 ▲14.94 |
Dashboard /wp-admin | 2,895 ▲41 | 6.11 ▼0.05 | 118.08 ▼15.59 | 151.64 ▼6.48 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.23 ▲0.00 | 63.32 ▲0.03 | 143.59 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,711 ▼0 | 21.10 ▲0.01 | 412.21 ▼0.64 | 151.71 ▼9.29 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.52 ▲0.03 | 135.83 ▼3.17 | 181.51 ▼7.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iblocks/iblocks.php:37
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== iblocks ===
) - Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png)
iblocks/iblocks.php Passed 13 tests
The main PHP script in "IBlocks" version 1.1 is automatically included on every request by WordPress
34 characters long description:
Innovative Blog Design Components.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,038 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 229 | 46 | 518 |
CSS | 5 | 71 | 9 | 419 |
JavaScript | 1 | 43 | 0 | 101 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.61MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/squared_black_start.png | 0.20KB | 0.33KB | 0.00% |
images/squared_black_end.png | 0.19KB | 0.33KB | 0.00% |
screenshot-2.png | 12.72KB | 4.97KB | ▼ 60.88% |
screenshot-4.png | 382.96KB | 135.35KB | ▼ 64.66% |
screenshot-1.png | 200.25KB | 59.58KB | ▼ 70.25% |