Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▼1.83MB] [CPU: ▼50.99ms] Passed 4 tests
An overview of server-side resources used by Quick Localization (Quick Localisation)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 5.69 ▼29.68 |
Dashboard /wp-admin | 2.19 ▼1.12 | 7.27 ▼39.87 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 7.40 ▼47.13 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 6.54 ▼87.27 |
Media Library /wp-admin/upload.php | 2.19 ▼1.05 | 6.07 ▼26.71 |
Import /wp-admin/admin.php?page=ql-import | 2.19 | 6.89 |
Edit /wp-admin/admin.php?page=ql-home | 2.19 | 8.03 |
Settings /wp-admin/admin.php?page=ql-settings | 2.19 | 7.60 |
Export /wp-admin/admin.php?page=ql-export | 2.19 | 8.13 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ql |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
ql_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Quick Localization (Quick Localisation)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 14.76 ▲0.38 | 1.80 ▲0.22 | 44.69 ▲5.20 |
Dashboard /wp-admin | 2,243 ▲55 | 5.82 ▲0.92 | 102.28 ▼4.80 | 80.42 ▲40.26 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.02 ▲0.03 | 35.19 ▼3.32 | 32.88 ▼3.49 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.13 ▲5.64 | 761.70 ▲105.90 | 51.21 ▼18.76 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.22 ▲0.02 | 101.49 ▲3.75 | 71.59 ▲29.93 |
Import /wp-admin/admin.php?page=ql-import | 878 | 2.01 | 23.90 | 29.98 |
Edit /wp-admin/admin.php?page=ql-home | 926 | 2.02 | 23.70 | 40.77 |
Settings /wp-admin/admin.php?page=ql-settings | 1,086 | 2.04 | 24.07 | 31.41 |
Export /wp-admin/admin.php?page=ql-export | 814 | 2.03 | 22.66 | 23.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_ql
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- ql_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ql-export
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ql-export
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
- 44 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ql-export
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=ql-import
- > Notice in wp-content/plugins/quick-localization/ql_import.php+57
Undefined index: ql_import_overwrite
- > GET request to /wp-admin/admin.php?page=ql-import
- > Notice in wp-content/plugins/quick-localization/ql_import.php+58
Undefined index: ql_import_clear
- > GET request to /wp-admin/admin.php?page=ql-home
- > Notice in wp-content/plugins/quick-localization/ql_edit.php+124
Undefined index: qlenonce
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/quick-localization/ql_admin.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Edit page) image required
- Tags: You are using too many tags: 215 tag instead of maximum 10
quick-localization/index.php 92% from 13 tests
The principal PHP file in "Quick Localization (Quick Localisation)" v. 0.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("quick-localization.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin859 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 223 | 49 | 840 |
HTML | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 73.00 |
▷ Minimum class complexity | 73.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 16.67% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.21MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/language skills-256.png | 111.61KB | 31.10KB | ▼ 72.14% |
images/select-language-48.png | 2.57KB | 1.96KB | ▼ 23.76% |
images/select-language-16.png | 0.59KB | 0.65KB | 0.00% |
images/select-language-24.png | 1.01KB | 1.25KB | 0.00% |
images/language skills-128.png | 38.02KB | 10.00KB | ▼ 73.71% |