Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.10MB] [CPU: ▼15.81ms] Passed 4 tests
This is a short check of server-side resources used by FrenchMap
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 38.11 ▼2.23 |
Dashboard /wp-admin | 3.20 ▼0.15 | 29.74 ▼25.34 |
Posts /wp-admin/edit.php | 3.34 ▼0.02 | 32.83 ▼13.38 |
Add New Post /wp-admin/post-new.php | 5.58 ▼0.31 | 70.14 ▼13.77 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 26.14 ▼10.73 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 35 new options
New WordPress options |
---|
languedoc-roussillon |
martinique |
corse |
lorraine |
champagne-ardenne |
theysaidso_admin_options |
reunion |
franche-comte |
limousin |
picardie |
... |
Browser metrics Passed 4 tests
Checking browser requirements for FrenchMap
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲133 | 14.42 ▲0.18 | 1.89 ▲0.16 | 44.26 ▲2.86 |
Dashboard /wp-admin | 2,282 ▲104 | 5.81 ▲0.14 | 85.99 ▼19.13 | 37.55 ▼4.01 |
Posts /wp-admin/edit.php | 2,195 ▲92 | 2.31 ▲0.37 | 36.72 ▼6.19 | 32.00 ▼6.92 |
Add New Post /wp-admin/post-new.php | 1,562 ▲33 | 23.39 ▲0.24 | 661.69 ▲67.96 | 35.41 ▼24.74 |
Media Library /wp-admin/upload.php | 1,493 ▲93 | 4.45 ▲0.27 | 100.17 ▼8.05 | 43.82 ▲0.53 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/frenchmap/frenchmap.php:71
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: carte, france, carte de france, carte interactive, carte des dpartements franais...
frenchmap/frenchmap.php Passed 13 tests
The main PHP script in "FrenchMap" version 1.0.1 is automatically included on every request by WordPress
91 characters long description:
FrenchMap vous permet d'afficher facilement et rapidement une carte interactive de France !
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin714 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 36 | 8 | 547 |
CSS | 1 | 18 | 3 | 163 |
JavaScript | 1 | 0 | 0 | 3 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 2 | 20.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/frenchmap_logo.png | 16.46KB | 5.67KB | ▼ 65.54% |