Benchmarks
Plugin footprint 65% 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: ▲0.17MB] [CPU: ▼3.02ms] Passed 4 tests
A check of server-side resources used by Polkadot Palette
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.72 ▲2.13 |
Dashboard /wp-admin | 3.52 ▲0.21 | 44.94 ▼7.51 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 51.08 ▲3.28 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 85.94 ▼9.96 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 36.60 ▲4.24 |
Start analyzing pictures /wp-admin/admin.php?page=polkadot_palette_batch | 3.38 | 32.67 |
Polkadot Palette /wp-admin/admin.php?page=polkadot_palette_admin | 3.42 | 59.72 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: 2 new tables, 7 new options
New tables |
---|
polkadot_palette_doc_pic |
polkadot_palette_pic |
New WordPress options |
---|
theysaidso_admin_options |
polkadot_palette |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Polkadot Palette
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,089 ▲332 | 13.81 ▼0.57 | 98.12 ▲96.00 | 43.94 ▼2.78 |
Dashboard /wp-admin | 2,233 ▲45 | 5.90 ▲1.00 | 102.62 ▼11.81 | 38.92 ▼9.98 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.01 ▲0.00 | 38.42 ▲2.59 | 35.35 ▼4.78 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 17.78 ▼5.47 | 687.69 ▼4.17 | 56.77 ▲2.01 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.22 ▲0.03 | 114.03 ▲10.20 | 49.79 ▲4.79 |
Start analyzing pictures /wp-admin/admin.php?page=polkadot_palette_batch | 802 | 2.03 | 27.67 | 32.18 |
Polkadot Palette /wp-admin/admin.php?page=polkadot_palette_admin | 1,016 | 2.06 | 22.46 | 28.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/polkadot-palette/inc/Polkadot_palette_admin.class.php+166
Undefined index: palette_color
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=polkadot_palette_batch
- > Notice in wp-content/plugins/polkadot-palette/inc/Polkadot_palette_admin.class.php+166
Undefined index: palette_color
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
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Polkadot_palette' not found in wp-content/plugins/polkadot-palette/inc/Polkadot_palette_template.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'Polkadot_palette' not found in wp-content/plugins/polkadot-palette/inc/Polkadot_palette_admin.class.php:6
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Display Polkadot Palette in footer. You can change the width and the height.), #2 (Showcase mode shows pictures with the full screen to show pictures. You can add BGM.)
polkadot-palette/polkadot-palette.php 77% from 13 tests
The main PHP file in "Polkadot Palette" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Domain Path: Please prefix the domain path with a forward slash character ("//")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,182 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 158 | 161 | 713 |
JavaScript | 1 | 33 | 1 | 320 |
PO File | 1 | 40 | 9 | 88 |
CSS | 2 | 0 | 0 | 61 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 17.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 62 | |
▷ Static methods | 5 | 8.06% |
▷ Public methods | 47 | 75.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 24.19% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected