Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.76MB] [CPU: ▲0.49ms] Passed 4 tests
Server-side resources used by WordPress Polymer Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.20 ▲0.74 | 42.57 ▲4.78 |
Dashboard /wp-admin | 4.05 ▲0.75 | 46.48 ▼3.03 |
Posts /wp-admin/edit.php | 4.16 ▲0.81 | 49.49 ▲3.76 |
Add New Post /wp-admin/post-new.php | 6.69 ▲0.80 | 84.81 ▼3.56 |
Media Library /wp-admin/upload.php | 3.97 ▲0.74 | 37.89 ▲5.67 |
WP Polymer /wp-admin/options-general.php?page=wpp_options | 3.98 | 37.98 |
Server storage [IO: ▲1.59MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 338 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Polymer Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,094 ▲333 | 18.41 ▲3.87 | 70.37 ▲68.63 | 38.19 ▼10.24 |
Dashboard /wp-admin | 2,215 ▲35 | 4.96 ▼0.71 | 93.76 ▲5.98 | 39.96 ▼5.72 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.32 ▲0.35 | 38.32 ▲4.30 | 33.74 ▼5.07 |
Add New Post /wp-admin/post-new.php | 6,412 ▲4,883 | 26.27 ▲3.16 | 848.21 ▲160.66 | 45.72 ▼31.03 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.49 ▲0.28 | 96.62 ▼8.80 | 42.64 ▼6.70 |
WP Polymer /wp-admin/options-general.php?page=wpp_options | 2,755 | 2.02 | 31.34 | 43.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-polymer/wp-polymer-template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_polymer\\plugin_dir_path() in wp-content/plugins/wp-polymer/wp-polymer.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_polymer\\plugin_dir_path() in wp-content/plugins/wp-polymer/conf.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_polymer\\plugin_dir_path() in wp-content/plugins/wp-polymer/wp-polymer-admin.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Add a description for screenshot #2 in wp-polymer/assets to your readme.txt
wp-polymer/wp-polymer.php Passed 13 tests
Analyzing the main PHP file in "WordPress Polymer Plugin" version 2.0.4
37 characters long description:
Add Polymer elements to your website!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin30,313 lines of code in 320 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 169 | 4,182 | 3,508 | 19,672 |
PHP | 6 | 972 | 1,961 | 6,554 |
HTML | 116 | 344 | 1,055 | 3,364 |
CSS | 14 | 61 | 141 | 377 |
JSON | 9 | 0 | 0 | 160 |
Markdown | 4 | 84 | 0 | 152 |
YAML | 1 | 0 | 0 | 25 |
Bourne Shell | 1 | 4 | 8 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 71.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 553.00 |
Average method complexity | 5.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 302 | |
▷ Static methods | 2 | 0.66% |
▷ Public methods | 238 | 78.81% |
▷ Protected methods | 64 | 21.19% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 125 | |
▷ Global constants | 74 | 59.20% |
▷ Class constants | 51 | 40.80% |
▷ Public constants | 51 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
components/webcomponentsjs/tests/HTMLImports/html/imports/google.png | 13.69KB | 8.97KB | ▼ 34.47% |
components/webcomponentsjs/tests/HTMLImports/html/redirect/imports/redirect/googley.png | 13.69KB | 8.97KB | ▼ 34.47% |
images/ic_on.png | 0.57KB | 0.61KB | 0.00% |
images/ic_off.png | 0.34KB | 0.09KB | ▼ 72.05% |
components/webcomponentsjs/tests/ShadowCSS/html/assets/google.png | 13.69KB | 8.97KB | ▼ 34.47% |