Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/paris-attacks-mc/mc-paris-attacks.php+50
Methods with the same name as their class will not be constructors in a future version of PHP; mc_parisattacks has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼53.25ms] Passed 4 tests
Analyzing server-side resources used by Paris Attacks Ribbon MC
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.37 | 4.21 ▼36.80 |
Dashboard /wp-admin | 2.12 ▼1.23 | 5.34 ▼50.35 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.97 ▼38.60 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 6.47 ▼87.26 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.71 ▼30.52 |
Paris Attacks Ribbon MC /wp-admin/options-general.php?page=mc_parisattacks_menu_id | 2.12 | 6.55 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
mc_paris-attacksAdminOptions |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Paris Attacks Ribbon MC
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 14.41 ▲0.01 | 1.86 ▲0.07 | 46.85 ▲3.15 |
Dashboard /wp-admin | 2,213 ▲25 | 4.82 ▼1.04 | 100.82 ▼1.42 | 37.96 ▼8.34 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.06 ▲0.05 | 38.98 ▼3.27 | 36.03 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 23.06 ▼0.08 | 663.42 ▼14.76 | 50.94 ▼9.99 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.17 ▼0.01 | 96.23 ▼3.23 | 43.50 ▼0.98 |
Paris Attacks Ribbon MC /wp-admin/options-general.php?page=mc_parisattacks_menu_id | 886 | 2.04 | 23.48 | 27.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/paris-attacks-mc/mc-paris-attacks.php+50
Methods with the same name as their class will not be constructors in a future version of PHP; mc_parisattacks has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- mc_paris-attacksAdminOptions
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=mc_parisattacks_menu_id
- > Deprecated in wp-content/plugins/paris-attacks-mc/mc-paris-attacks.php+50
Methods with the same name as their class will not be constructors in a future version of PHP; mc_parisattacks has a deprecated constructor
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/paris-attacks-mc/mc-paris-attacks.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/paris-attacks-mc/admin_settings.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #2, #2 in paris-attacks-mc/assets to your readme.txt
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== paris-attacks-mc ===
)
paris-attacks-mc/mc-paris-attacks.php 69% from 13 tests
The primary PHP file in "Paris Attacks Ribbon MC" version 1.00a... is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 234 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: It is recommended to name the main PHP file as the plugin slug ("paris-attacks-mc.php" instead of "mc-paris-attacks.php")
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1.00a...")
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
There were no executable files found in this plugin363 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 18 | 19 | 292 |
PO File | 1 | 26 | 57 | 71 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 20 | |
▷ Global constants | 20 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
mc-eiffelR.png | 21.30KB | 7.39KB | ▼ 65.31% |
mc-cryingeyeL.png | 21.50KB | 7.51KB | ▼ 65.08% |
mc-marianneR.png | 7.68KB | 4.38KB | ▼ 42.96% |
mc-cryingeyeR.png | 22.26KB | 7.45KB | ▼ 66.53% |
mc-blackL.png | 1.29KB | 0.79KB | ▼ 38.50% |