Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.20ms] Passed 4 tests
Analyzing server-side resources used by Polarsteps Integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 49.19 ▲5.38 |
Dashboard /wp-admin | 3.43 ▲0.13 | 50.99 ▼2.93 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 47.76 ▲1.97 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 84.57 ▼10.11 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.50 ▼1.72 |
Polarsteps Settings /wp-admin/options-general.php?page=polarsteps-settings | 3.33 | 32.47 |
Server storage [IO: ▲2.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 286 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_polarsteps |
New WordPress options |
---|
polarsteps_username |
widget_theysaidso_widget |
polarsteps_db_version |
db_upgraded |
widget_recent-comments |
widget_polarsteps_integration_location_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Polarsteps Integration
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.28 ▼0.07 | 1.83 ▲0.05 | 42.96 ▼0.32 |
Dashboard /wp-admin | 2,199 ▲25 | 5.63 ▼0.04 | 88.64 ▼11.31 | 42.00 ▼2.29 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.05 | 33.73 ▼2.79 | 35.56 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 22.71 ▼0.69 | 663.21 ▼7.10 | 60.12 ▲14.53 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.18 ▲0.00 | 97.39 ▼2.10 | 42.69 ▼0.78 |
Polarsteps Settings /wp-admin/options-general.php?page=polarsteps-settings | 831 | 2.00 | 24.60 | 27.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_polarsteps_integration_location_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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
Good news, no errors were detected
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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/integrate-polarsteps/includes/class-polarsteps-integration-widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: travelmap, travel, polarsteps, travel blog
integrate-polarsteps/polarsteps-integration.php 77% from 13 tests
The primary PHP file in "Polarsteps Integration" version 0.4.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("integrate-polarsteps.php" instead of "polarsteps-integration.php")
- Description: The description should be shorter than 140 characters (currently 210 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin18,181 lines of code in 273 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 257 | 0 | 0 | 17,501 |
PHP | 14 | 275 | 720 | 615 |
PO File | 1 | 13 | 15 | 47 |
CSS | 1 | 3 | 0 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 36 | 72.00% |
▷ Protected methods | 5 | 10.00% |
▷ Private methods | 9 | 18.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x258.png | 16.82KB | 8.45KB | ▼ 49.78% |
assets/icon-128x128.png | 6.87KB | 4.30KB | ▼ 37.45% |