84% peace-for-paris

Code Review | Peace for Paris

WordPress plugin Peace for Paris scored84%from 54 tests.

About plugin

  • Plugin page: peace-for-paris
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-4.4
  • WordPress version: 6.3.1
  • First release: Nov 17, 2015
  • Latest release: Nov 17, 2015
  • Number of updates: 9
  • Update frequency: every 1.0 days
  • Top authors: RavanH (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /767 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.67ms] Passed 4 tests

Server-side resources used by Peace for Paris
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0042.33 ▲0.97
Dashboard /wp-admin3.35 ▲0.0150.95 ▼4.13
Posts /wp-admin/edit.php3.40 ▲0.0051.64 ▼0.21
Add New Post /wp-admin/post-new.php5.93 ▲0.0085.43 ▼23.29
Media Library /wp-admin/upload.php3.27 ▲0.0041.06 ▲4.02

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Peace for Paris
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.24 ▲0.042.38 ▲0.7243.97 ▲1.91
Dashboard /wp-admin2,195 ▲155.60 ▼0.0688.87 ▲0.1637.35 ▼0.04
Posts /wp-admin/edit.php2,103 ▲31.98 ▲0.0138.60 ▲2.1734.69 ▼2.27
Add New Post /wp-admin/post-new.php1,526 ▼023.00 ▼0.13690.29 ▲1.5255.86 ▲4.19
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.04107.51 ▼1.4249.67 ▲2.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/peace-for-paris/paris.php:17

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: je suis paris, paris peace sign, ribbon, peace for paris, button...

peace-for-paris/paris.php 92% from 13 tests

The main file in "Peace for Paris" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("peace-for-paris.php" instead of "paris.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12918

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
paris-peace-sign.png21.77KB10.75KB▼ 50.61%