Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.77ms] 75% from 4 tests
This is a short check of server-side resources used by WP CLDR
Please have a look at the following items
- CPU: You should keep total CPU usage under 500.00ms (currently 510.88ms on /wp-admin/options-general.php?page=wp-cldr)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.54 ▼4.24 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.71 ▼1.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.57 ▲4.99 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.50 ▼8.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.07 ▼0.86 |
WP CLDR /wp-admin/options-general.php?page=wp-cldr | 6.31 | 510.88 |
Server storage [IO: ▲20.64MB] [DB: ▲0.05MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 713 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
WP CLDR: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.17 ▼1.11 | 1.70 ▼0.43 | 40.50 ▼4.28 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.02 | 103.99 ▼0.52 | 38.65 ▼5.35 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.05 | 39.60 ▲5.31 | 34.20 ▲0.86 |
Add New Post /wp-admin/post-new.php | 1,536 ▼2 | 23.42 ▲0.05 | 648.04 ▼25.15 | 63.31 ▲10.82 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.15 ▼0.08 | 95.76 ▼1.59 | 42.01 ▼0.15 |
WP CLDR /wp-admin/options-general.php?page=wp-cldr | 2,965 | 2.02 | 24.26 | 107.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-cldr/prune-cldr-files.php
- 408× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/wp-cldr/prune-cldr-files.php on line 47
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/wp-cldr/prune-cldr-files.php on line 52
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/wp-cldr/prune-cldr-files.php on line 75
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/wp-cldr/prune-cldr-files.php on line 52
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/wp-cldr/prune-cldr-files.php on line 75
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/wp-cldr/prune-cldr-files.php on line 52
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/wp-cldr/prune-cldr-files.php on line 52
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/wp-cldr/prune-cldr-files.php on line 52
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/wp-cldr/prune-cldr-files.php on line 47
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/wp-cldr/prune-cldr-files.php on line 47
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
6 plugin tags: localization, i18n, internationalization, unicode, cldr...
wp-cldr/wp-cldr.php 85% from 13 tests
The main PHP file in "WP CLDR" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages")
- Description: Please keep the plugin description shorter than 140 characters (currently 296 characters long)
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
Success! There were no dangerous files found in this plugin636,418 lines of code in 710 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 703 | 0 | 0 | 635,565 |
PHP | 4 | 186 | 424 | 808 |
Bourne Shell | 2 | 15 | 18 | 31 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 5 | 9.09% |
▷ Public methods | 52 | 94.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.45% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
No PNG images were found in this plugin