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.00MB] [CPU: ▼3.63ms] Passed 4 tests
This is a short check of server-side resources used by Add Polylang support for Customizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.42 ▼3.20 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.31 ▼1.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.44 ▲7.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.15 ▼9.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.20 ▼0.31 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Add Polylang support for Customizer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.27 ▼1.38 | 1.76 ▼0.23 | 42.60 ▼5.98 |
Dashboard /wp-admin | 2,218 ▲30 | 4.90 ▲0.03 | 107.24 ▼13.98 | 43.30 ▼2.08 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.02 ▼0.03 | 39.59 ▼1.15 | 35.63 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.24 ▲0.04 | 660.49 ▲26.38 | 54.71 ▼1.58 |
Media Library /wp-admin/upload.php | 1,397 ▲15 | 4.29 ▲0.06 | 98.69 ▲2.89 | 41.52 ▼3.28 |
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 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function Richardevcom\\Apsfc\\add_action() in wp-content/plugins/add-polylang-support-for-customizer/includes/class-apsfc.php:111
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
Attributes that need to be fixed:
- Donate link: Invalid URI found ("paypal.me/ricardsmucelans")
add-polylang-support-for-customizer/apsfc.php 85% from 13 tests
The entry point to "Add Polylang support for Customizer" version 1.4.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-polylang-support-for-customizer.php" instead of "apsfc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin611 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 71 | 200 | 336 |
PO File | 7 | 61 | 66 | 228 |
JavaScript | 1 | 9 | 12 | 47 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 17 | 80.95% |
▷ Protected methods | 3 | 14.29% |
▷ Private methods | 1 | 4.76% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected