83% p3x-realisation-web

Code Review | p3x realisation web

WordPress plugin p3x realisation web scored 83% from 54 tests.

About plugin

  • Plugin page: p3x-realisation-web
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0
  • WordPress version: 6.3.1
  • First release: Jan 9, 2019
  • Latest release: Jan 9, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: p3xfr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 442 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by p3x realisation web
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0140.39 ▼16.82
Dashboard /wp-admin3.31 ▲0.0146.77 ▼2.50
Posts /wp-admin/edit.php3.36 ▲0.0049.64 ▲2.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.55 ▼15.99
Media Library /wp-admin/upload.php3.23 ▲0.0038.42 ▲1.85

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by p3x realisation web
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.454.45 ▲1.7339.27 ▼32.89
Dashboard /wp-admin2,206 ▲184.89 ▼0.13108.79 ▲0.3538.72 ▲0.23
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0339.53 ▲5.0035.30 ▼0.24
Add New Post /wp-admin/post-new.php1,528 ▲1423.25 ▲5.81663.15 ▼8.7059.81 ▲5.04
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.0594.46 ▼5.8943.33 ▼6.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/p3x-realisation-web/p3x.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: ""
  • Stable tag: Empty string
The official readme.txt might help

p3x-realisation-web/p3x.php 85% from 13 tests

The primary PHP file in "p3x realisation web" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("p3x-realisation-web.php" instead of "p3x.php")

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 plugin15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16815

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin