Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.74MB] [CPU: ▼138.11ms] Passed 4 tests
This is a short check of server-side resources used by Polymer for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.69 | 46.76 ▲12.30 |
Dashboard /wp-admin | 3.81 ▲0.76 | 52.59 ▲6.72 |
Posts /wp-admin/edit.php | 3.92 ▲0.81 | 49.98 ▲4.25 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.75 | 97.09 ▼568.16 |
Media Library /wp-admin/upload.php | 3.75 ▲0.75 | 38.23 ▲4.77 |
Blocks /wp-admin/edit.php?post_type=block | 3.80 | 36.69 |
Add New /wp-admin/post-new.php?post_type=block | 3.80 | 46.59 |
Polymer Components /wp-admin/options-general.php?page=polymer-settings | 3.70 | 31.78 |
Server storage [IO: ▲3.51MB] [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: 780 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_polymer_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Polymer for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,932 ▲326 | 22.51 ▲6.98 | 78.00 ▲68.94 | 44.98 ▼5.35 |
Dashboard /wp-admin | 3,017 ▲86 | 6.68 ▲0.70 | 159.78 ▲12.25 | 109.13 ▼1.32 |
Posts /wp-admin/edit.php | 2,786 ▲47 | 2.71 ▲0.00 | 85.20 ▼6.01 | 88.46 ▼4.63 |
Add New Post /wp-admin/post-new.php | 2,398 ▲728 | 24.61 ▲5.52 | 385.15 ▼23.36 | 134.42 ▲27.84 |
Media Library /wp-admin/upload.php | 1,857 ▲50 | 5.49 ▲0.45 | 139.01 ▼24.40 | 122.78 ▲14.47 |
Blocks /wp-admin/edit.php?post_type=block | 1,443 | 2.95 | 66.34 | 71.74 |
Add New /wp-admin/post-new.php?post_type=block | 2,297 | 4.30 | 108.37 | 112.78 |
Polymer Components /wp-admin/options-general.php?page=polymer-settings | 1,140 | 2.59 | 54.59 | 80.47 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_polymer_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=polymer-settings
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=polymer-settings
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/polymer-components/polymer-components.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/polymer-components/polymer-template.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/polymer-components/polymer-block.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5 in polymer-components/assets to your readme.txt
polymer-components/polymer-components.php Passed 13 tests
This is the main PHP file of "Polymer for WordPress" version 1.4.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
37 characters long description:
Add Polymer elements to your website!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected64,217 lines of code in 707 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 69 | 4,124 | 13,363 | 27,846 |
HTML | 341 | 6,149 | 5,869 | 26,238 |
PHP | 8 | 55 | 100 | 3,476 |
JSON | 162 | 0 | 0 | 2,838 |
CSS | 42 | 494 | 418 | 2,710 |
Markdown | 79 | 364 | 0 | 1,022 |
Bourne Shell | 1 | 16 | 11 | 59 |
YAML | 2 | 3 | 0 | 13 |
make | 1 | 3 | 0 | 9 |
SVG | 2 | 2 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 39.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 258 | |
▷ Static methods | 2 | 0.78% |
▷ Public methods | 194 | 75.19% |
▷ Protected methods | 64 | 24.81% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 55 | |
▷ Global constants | 4 | 7.27% |
▷ Class constants | 51 | 92.73% |
▷ Public constants | 51 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
components/core-iconset/my-icons.png | 2.59KB | 1.55KB | ▼ 40.07% |
components/core-list/images/2.png | 11.45KB | 9.43KB | ▼ 17.66% |
components/core-component-page/bowager-logo.png | 5.04KB | 1.92KB | ▼ 61.86% |
components/core-iconset/my-icons-big.png | 34.90KB | 6.30KB | ▼ 81.95% |
components/core-animated-pages/demos/quiz1-intro.png | 9.82KB | 2.53KB | ▼ 74.27% |