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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼647.63ms] Passed 4 tests
This is a short check of server-side resources used by Logos des partis politiques francais
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 32.83 ▼2.52 |
Dashboard /wp-admin | 3.07 ▲0.02 | 43.72 ▲1.23 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 43.43 ▼7.50 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 90.13 ▼2,581.72 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 33.59 ▲3.53 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_logosppf_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Logos des partis politiques francais
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲42 | 16.29 ▲0.83 | 9.58 ▼2.57 | 49.45 ▼0.13 |
Dashboard /wp-admin | 2,973 ▲36 | 5.92 ▼0.20 | 137.96 ▼6.80 | 107.16 ▼4.11 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.70 ▼0.02 | 62.60 ▼5.57 | 88.17 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,876 ▲204 | 19.16 ▲0.38 | 383.83 ▲17.98 | 103.05 ▼2.66 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.01 ▼0.03 | 148.56 ▲8.47 | 125.43 ▲12.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_logosppf_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/logo-des-partis-politiques-francais/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logo-des-partis-politiques-francais/logos-ppf.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: widget
logo-des-partis-politiques-francais/logos-ppf.php 85% from 13 tests
The main PHP file in "Logos des partis politiques francais" ver. 1.6.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- 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
- Main file name: It is recommended to name the main PHP file as the plugin slug ("logo-des-partis-politiques-francais.php" instead of "logos-ppf.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected453 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 32 | 18 | 356 |
PO File | 1 | 11 | 11 | 41 |
CSS | 1 | 4 | 0 | 39 |
JavaScript | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 8.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.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 | 14 | |
▷ Static methods | 9 | 64.29% |
▷ Public methods | 14 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.53MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logos/EM_en-marche.fr.png | 4.03KB | 3.74KB | ▼ 7.36% |
logos/UDB_udb-bzh.net.png | 34.80KB | 26.04KB | ▼ 25.18% |
logos/LR_republicains.fr.png | 34.45KB | 13.28KB | ▼ 61.45% |
logos/EELV-2_eelv.fr.png | 58.12KB | 20.23KB | ▼ 65.20% |
logos/UDI_parti-udi.fr.png | 5.10KB | 2.62KB | ▼ 48.65% |