Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲3.71MB] [CPU: ▼291.54ms] 75% from 4 tests
A check of server-side resources used by Pinblocks — Gutenberg blocks with Pinterest widgets
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 1,411.94ms on /wp-admin/admin.php?page=pinblocks)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.74 ▲4.22 | 72.29 ▲11.64 |
Dashboard /wp-admin | 7.75 ▲4.35 | 52.86 ▲18.36 |
Posts /wp-admin/edit.php | 7.76 ▲4.12 | 55.48 ▲16.24 |
Add New Post /wp-admin/post-new.php | 9.14 ▲2.17 | 74.56 ▼1,212.38 |
Media Library /wp-admin/upload.php | 7.75 ▲4.46 | 43.52 ▲20.09 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 7.76 | 39.33 |
Pinblocks — Gutenberg blocks with Pinterest widgets /wp-admin/admin.php?page=pinblocks | 7.76 | 1,411.94 |
Server storage [IO: ▲3.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 225 new files
Database: no new tables, 5 new options
New WordPress options |
---|
fs_accounts |
fs_gdpr |
fs_debug_mode |
fs_active_plugins |
fs_api_cache |
Browser metrics Passed 4 tests
Checking browser requirements for Pinblocks — Gutenberg blocks with Pinterest widgets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,801 ▲47 | 17.09 ▲1.34 | 16.97 ▲11.00 | 2.39 ▼0.69 |
Dashboard /wp-admin | 2,919 ▲59 | 6.16 ▲0.08 | 115.48 ▼9.65 | 165.43 ▼3.33 |
Posts /wp-admin/edit.php | 2,722 ▲31 | 3.24 ▼0.00 | 64.01 ▼1.45 | 155.32 ▲5.69 |
Add New Post /wp-admin/post-new.php | 1,689 ▲28 | 22.60 ▲6.14 | 442.58 ▲23.34 | 174.29 ▲16.29 |
Media Library /wp-admin/upload.php | 1,726 ▲28 | 5.55 ▲0.01 | 132.72 ▼4.06 | 202.36 ▲14.75 |
Freemius Debug [v.2.2.4] /wp-admin/admin.php?page=freemius | 1,443 | 2.53 | 54.32 | 129.79 |
Pinblocks — Gutenberg blocks with Pinterest widgets /wp-admin/admin.php?page=pinblocks | 1,245 | 2.45 | 52.34 | 167.97 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 5 options
- fs_gdpr
- fs_debug_mode
- fs_accounts
- fs_api_cache
- fs_active_plugins
Smoke tests 50% 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 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/pinblocks/freemius/templates/ajax-loader.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pinblocks/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/pinblocks/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pinblocks/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/pinblocks/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/pinblocks/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pinblocks/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/pinblocks/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/pinblocks/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: gutenberg, pinterest, image, widget, block
pinblocks/pinblocks.php Passed 13 tests
The main PHP file in "Pinblocks — Gutenberg blocks with Pinterest widgets" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
120 characters long description:
Pinblocks — is a WordPress plugin created to add Pinterest Widgets to your posts and pages by Gutenberg editor blocks.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected42,190 lines of code in 177 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 109 | 6,299 | 14,633 | 26,447 |
PO File | 12 | 5,610 | 6,735 | 12,150 |
Sass | 29 | 399 | 77 | 2,529 |
JavaScript | 11 | 80 | 174 | 815 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 4 | 0 | 0 | 43 |
CSS | 11 | 0 | 0 | 14 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,360)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 75.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,360.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 0 | 0.00% |
Methods | 1,046 | |
▷ Static methods | 166 | 15.87% |
▷ Public methods | 732 | 69.98% |
▷ Protected methods | 15 | 1.43% |
▷ Private methods | 299 | 28.59% |
Functions | 98 | |
▷ Named functions | 97 | 98.98% |
▷ Anonymous functions | 1 | 1.02% |
Constants | 116 | |
▷ Global constants | 96 | 82.76% |
▷ Class constants | 20 | 17.24% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/pinblocks.png | 4.98KB | 2.39KB | ▼ 52.10% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |