Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.21ms] Passed 4 tests
Server-side resources used by Lieu.city - easily include the vr experience in your website
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.60 ▼5.33 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.03 ▼2.99 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 48.47 ▼1.89 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 92.10 ▼2.63 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 39.00 ▲1.46 |
Server storage [IO: ▲28.64MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- Total filesystem usage must be limited to 25MB (currently using 28.64MB)
Filesystem: 2,795 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Lieu.city - easily include the vr experience in your website
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.32 ▼1.03 | 2.21 ▲0.26 | 40.04 ▼4.30 |
Dashboard /wp-admin | 2,224 ▲36 | 5.83 ▲0.81 | 100.68 ▼18.46 | 77.01 ▲31.32 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.01 ▲0.02 | 40.70 ▲5.71 | 34.03 ▲0.78 |
Add New Post /wp-admin/post-new.php | 1,679 ▲159 | 22.38 ▼0.72 | 721.00 ▲96.73 | 42.32 ▼9.23 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.16 ▼0.07 | 100.06 ▼12.84 | 69.50 ▲21.89 |
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
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/lieu-city/lieu-city-plugin.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/lieu-city/pages/login.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/lieu-city/pages/exhibition-list.php:16
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Donate link: Please fix this invalid url: ""
lieu-city/lieu-city-plugin.php 85% from 13 tests
The primary PHP file in "Lieu.city - easily include the vr experience in your website" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lieu-city.php" instead of "lieu-city-plugin.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
No dangerous file extensions were detected305,542 lines of code in 2,576 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 13 | 0 | 0 | 93,703 |
YAML | 6 | 0 | 0 | 70,768 |
JavaScript | 282 | 14,398 | 8,813 | 58,784 |
CSS | 41 | 8,714 | 429 | 51,019 |
Sass | 111 | 1,940 | 1,381 | 14,349 |
SVG | 2,022 | 0 | 15 | 8,112 |
LESS | 18 | 552 | 72 | 6,903 |
Markdown | 8 | 269 | 0 | 671 |
TypeScript | 66 | 69 | 165 | 641 |
PHP | 8 | 97 | 27 | 442 |
HTML | 1 | 55 | 0 | 150 |
PHP code Passed 2 tests
A brief analysis 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.27 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 2 | 10.53% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/svg/vr_icon.png | 0.68KB | 0.50KB | ▼ 26.22% |