10% paris-attacks-mc

Code Review | Paris Attacks Ribbon MC

WordPress plugin Paris Attacks Ribbon MC scored10%from 54 tests.

About plugin

  • Plugin page: paris-attacks-mc
  • Plugin version: 1.00a...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Nov 23, 2015
  • Latest release: Nov 23, 2015
  • Number of updates: 11
  • Update frequency: every 0.6 days
  • Top authors: ComputingFroggy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /956 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.374.21 ▼36.80
Dashboard /wp-admin2.12 ▼1.235.34 ▼50.35
Posts /wp-admin/edit.php2.12 ▼1.245.97 ▼38.60
Add New Post /wp-admin/post-new.php2.12 ▼3.776.47 ▼87.26
Media Library /wp-admin/upload.php2.12 ▼1.115.71 ▼30.52
Paris Attacks Ribbon MC /wp-admin/options-general.php?page=mc_parisattacks_menu_id2.126.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6314.41 ▲0.011.86 ▲0.0746.85 ▲3.15
Dashboard /wp-admin2,213 ▲254.82 ▼1.04100.82 ▼1.4237.96 ▼8.34
Posts /wp-admin/edit.php2,093 ▲12.06 ▲0.0538.98 ▼3.2736.03 ▼2.98
Add New Post /wp-admin/post-new.php1,540 ▲2123.06 ▼0.08663.42 ▼14.7650.94 ▼9.99
Media Library /wp-admin/upload.php1,395 ▲44.17 ▼0.0196.23 ▼3.2343.50 ▼0.98
Paris Attacks Ribbon MC /wp-admin/options-general.php?page=mc_parisattacks_menu_id8862.0423.4827.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

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 === )
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP21819292
PO File1265771

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 code0.37
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
mc-eiffelR.png21.30KB7.39KB▼ 65.31%
mc-cryingeyeL.png21.50KB7.51KB▼ 65.08%
mc-marianneR.png7.68KB4.38KB▼ 42.96%
mc-cryingeyeR.png22.26KB7.45KB▼ 66.53%
mc-blackL.png1.29KB0.79KB▼ 38.50%