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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼10.98ms] 75% from 4 tests
This is a short check of server-side resources used by Per Post Language
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 501.98ms on /wp-admin/options-general.php?page=ppl_settings_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.07 ▼4.49 |
Dashboard /wp-admin | 3.37 ▲0.02 | 50.25 ▼21.45 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.94 ▼6.52 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 85.85 ▼11.47 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.83 ▲1.52 |
Per Post Language /wp-admin/options-general.php?page=ppl_settings_page | 3.72 | 501.98 |
Server storage [IO: ▲0.03MB] [DB: ▲0.05MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
ppl_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Per Post Language
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.21 ▼0.17 | 1.97 ▲0.21 | 42.13 ▲0.21 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▼0.03 | 89.70 ▼21.65 | 38.99 ▼5.38 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.07 | 36.52 ▲0.98 | 34.45 ▲0.89 |
Add New Post /wp-admin/post-new.php | 6,222 ▲4,696 | 26.01 ▲2.31 | 921.66 ▲203.62 | 53.79 ▲1.19 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.21 ▼0.02 | 100.77 ▼8.18 | 42.36 ▼5.60 |
Per Post Language /wp-admin/options-general.php?page=ppl_settings_page | 1,377 | 2.00 | 23.74 | 99.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- ppl_options
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/per-post-language/ppl_settings_page.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/per-post-language/ppl_settings_page.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: You are using too many tags: 14 tag instead of maximum 10
per-post-language/ppl_core.php 92% from 13 tests
The primary PHP file in "Per Post Language" version 1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("per-post-language.php" instead of "ppl_core.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected316 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 29 | 54 | 245 |
PO File | 1 | 21 | 27 | 71 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected