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.41MB] [CPU: ▼4.74ms] Passed 4 tests
Server-side resources used by WP_Places
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 41.77 ▼6.62 |
Dashboard /wp-admin | 3.75 ▲0.41 | 51.68 ▼8.77 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 48.97 ▼0.37 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.39 | 97.02 ▼3.18 |
Media Library /wp-admin/upload.php | 3.61 ▲0.39 | 38.77 ▲3.57 |
Server storage [IO: ▲2.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 353 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
widget_wp-places-hours |
can_compress_scripts |
widget_recent-comments |
wp_places_settings |
wp_places_legacy |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_wp-places-map |
Browser metrics Passed 4 tests
A check of browser resources used by WP_Places
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.22 ▼1.16 | 1.52 ▼0.15 | 38.58 ▲2.60 |
Dashboard /wp-admin | 2,222 ▲34 | 5.86 ▲0.96 | 96.76 ▼9.98 | 40.98 ▼0.51 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.05 ▲0.05 | 36.87 ▼2.83 | 34.49 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.37 ▲5.05 | 591.32 ▼48.52 | 57.74 ▼1.28 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.20 ▼0.00 | 98.46 ▼2.88 | 44.53 ▼2.95 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_recent-comments
- wp_places_legacy
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_wp-places-hours
- widget_theysaidso_widget
- wp_places_settings
- widget_wp-places-map
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 32× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-places/vendor/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wp-places/vendor/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-places/WP_Places.php:426
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-places/vendor/cmb2/includes/types/CMB2_Type_Wysiwyg.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-places/vendor/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/wp-places/vendor/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wp-places/vendor/cmb2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-places/includes/class-hours.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wp-places/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/wp-places/vendor/cmb2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-places ===
)
wp-places/WP_Places.php 85% from 13 tests
The entry point to "WP_Places" version 2.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-places.php" instead of "WP_Places.php")
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
There were no executable files found in this plugin40,781 lines of code in 205 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 119 | 12,731 | 16,338 | 29,151 |
PHP | 53 | 1,534 | 4,000 | 4,923 |
CSS | 12 | 1,002 | 1,034 | 4,406 |
Sass | 13 | 238 | 25 | 1,149 |
JavaScript | 4 | 179 | 136 | 732 |
Markdown | 3 | 135 | 0 | 393 |
JSON | 1 | 0 | 0 | 27 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 4 | 6.06% |
▷ Concrete classes | 62 | 93.94% |
▷ Final classes | 1 | 1.61% |
Methods | 375 | |
▷ Static methods | 31 | 8.27% |
▷ Public methods | 337 | 89.87% |
▷ Protected methods | 35 | 9.33% |
▷ Private methods | 3 | 0.80% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
vendor/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
vendor/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |