Benchmarks
Plugin footprint 83% 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.05MB] [CPU: ▼4.58ms] Passed 4 tests
Server-side resources used by La Poste : communes par codes postaux
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.32 ▲5.64 |
Dashboard /wp-admin | 3.36 ▲0.02 | 49.18 ▼13.20 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 45.35 ▲0.75 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 80.42 ▼4.73 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.91 ▼1.14 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by La Poste : communes par codes postaux
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.25 ▼0.11 | 1.79 ▲0.24 | 45.55 ▲5.02 |
Dashboard /wp-admin | 2,202 ▲22 | 5.63 ▼0.01 | 93.81 ▲7.26 | 41.62 ▲3.24 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.03 | 33.75 ▼2.00 | 33.73 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.02 ▼0.64 | 642.91 ▼57.95 | 48.59 ▼8.97 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▲0.04 | 97.72 ▼23.03 | 44.01 ▼10.46 |
Codes Postaux /wp-admin/hexasmal_cp.php | 26 | 0.42 | 0.09 | 13.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/laposte-hexasmal/hexasmal-shortcodes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/laposte-hexasmal/hexasmal-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/laposte-hexasmal/hexasmal_codes_postaux.php:25
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/hexasmal_cp.php
- > Network (severe)
wp-admin/hexasmal_cp.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: la poste, communes, woocommerce, adresse, code postal...
laposte-hexasmal/hexasmal_codes_postaux.php 77% from 13 tests
The entry point to "La Poste : communes par codes postaux" version 1.4.4.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("laposte-hexasmal.php" instead of "hexasmal_codes_postaux.php")
- Text Domain: Please use dashes and lowercase characters for text domains
- Requires at least: The required version number must match the one declared in readme.txt ("2.7" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected580 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 159 | 151 | 580 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
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 | 18 | |
▷ Named functions | 10 | 55.56% |
▷ Anonymous functions | 8 | 44.44% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin