Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/je-suis-charlie-ribbon-mc/mc-je-suis-charlie.php+44
Methods with the same name as their class will not be constructors in a future version of PHP; mc_jesuischarlie has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼54.94ms] Passed 4 tests
Server-side resources used by "Je suis Charlie" Ribbon MC
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 9.56 ▼27.18 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.16 ▼42.82 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 6.97 ▼44.47 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 5.64 ▼105.29 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.31 ▼26.61 |
"Je Suis CHARLIE" Ribbon MC /wp-admin/options-general.php?page=mc_jesuischarlie_menu_id | 2.10 | 6.44 |
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: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by "Je suis Charlie" Ribbon MC
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.69 ▼0.62 | 4.66 ▲2.74 | 43.67 ▲3.52 |
Dashboard /wp-admin | 2,210 ▲21 | 5.87 ▲0.92 | 97.83 ▼9.87 | 38.49 ▼5.52 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.03 | 35.89 ▼4.35 | 30.94 ▼5.62 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.11 ▲4.73 | 673.48 ▲55.21 | 54.00 ▼7.82 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▼0.01 | 94.58 ▼4.27 | 44.34 ▲1.61 |
"Je Suis CHARLIE" Ribbon MC /wp-admin/options-general.php?page=mc_jesuischarlie_menu_id | 873 | 2.06 | 23.19 | 27.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/je-suis-charlie-ribbon-mc/mc-je-suis-charlie.php+44
Methods with the same name as their class will not be constructors in a future version of PHP; mc_jesuischarlie has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=mc_jesuischarlie_menu_id
- > Deprecated in wp-content/plugins/je-suis-charlie-ribbon-mc/mc-je-suis-charlie.php+44
Methods with the same name as their class will not be constructors in a future version of PHP; mc_jesuischarlie has a deprecated constructor
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mc_jesuischarlie_menu_id
- > Notice in wp-content/plugins/je-suis-charlie-ribbon-mc/admin_settings.php+96
Trying to access array offset on value of type bool
SRP 0% 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/je-suis-charlie-ribbon-mc/mc-je-suis-charlie.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/je-suis-charlie-ribbon-mc/admin_settings.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #2, #2 in je-suis-charlie-ribbon-mc/assets to your readme.txt
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== je-suis-charlie-ribbon-mc ===
)
je-suis-charlie-ribbon-mc/mc-je-suis-charlie.php 77% from 13 tests
The main PHP file in ""Je suis Charlie" Ribbon MC" ver. 1.01 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("je-suis-charlie-ribbon-mc.php" instead of "mc-je-suis-charlie.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 214 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin277 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 19 | 19 | 228 |
PO File | 1 | 15 | 28 | 49 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
mc-je-suis-charlie-left.png | 14.00KB | 9.08KB | ▼ 35.11% |
mc-je-suis-charlie-right.png | 17.70KB | 9.15KB | ▼ 48.32% |