Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.34ms] Passed 4 tests
An overview of server-side resources used by Specified language access for Polylang
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.00 ▼0.48 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.07 ▼13.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.54 ▼3.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.42 ▼16.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.58 ▼4.70 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Specified language access for Polylang
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.34 ▼0.01 | 1.78 ▲0.17 | 42.17 ▲3.14 |
Dashboard /wp-admin | 2,195 ▲21 | 5.55 ▲0.02 | 85.49 ▼6.03 | 39.51 ▲0.56 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.03 | 34.57 ▼4.45 | 36.66 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.04 ▼0.44 | 699.43 ▲21.80 | 60.02 ▲6.61 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▲0.06 | 98.02 ▼20.08 | 44.20 ▼1.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/slaf-polylang/includes/class-slaf-polylang-activator.php on line 23
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/slaf-polylang/includes/class-slaf-polylang-activator.php on line 23
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/slaf-polylang/includes/class-slaf-polylang-activator.php on line 23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2 in slaf-polylang/assets to your readme.txt
slaf-polylang/slaf-polylang.php Passed 13 tests
The entry point to "Specified language access for Polylang" version 1.1.2 is a PHP file that has certain tags in its header comment area
95 characters long description:
Plugin allows restrict users to edit content on wp-admin only with specified selected language.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin309 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 118 | 487 | 292 |
JavaScript | 1 | 4 | 0 | 17 |
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.19 |
Average class complexity | 3.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 23 | 85.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 14.81% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin