83% x3p0-powered-by

Code Review | X3P0 Powered By

WordPress plugin X3P0 Powered By scored83%from 54 tests.

About plugin

  • Plugin page: x3p0-powered-by
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2022
  • Latest release: Oct 14, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: greenshady (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /232 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.37ms] Passed 4 tests

This is a short check of server-side resources used by X3P0 Powered By
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.80 ▼2.20
Dashboard /wp-admin3.35 ▲0.0450.36 ▲3.07
Posts /wp-admin/edit.php3.40 ▲0.0449.42 ▲0.67
Add New Post /wp-admin/post-new.php5.94 ▲0.0488.40 ▼2.89
Media Library /wp-admin/upload.php3.28 ▲0.0435.99 ▼1.07

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for X3P0 Powered By
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲3114.16 ▼0.002.03 ▼0.2243.16 ▲0.05
Dashboard /wp-admin2,195 ▲185.62 ▲0.0289.79 ▼6.8439.49 ▼5.04
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0035.60 ▼0.7334.62 ▼0.95
Add New Post /wp-admin/post-new.php6,367 ▲4,84127.61 ▲4.58867.82 ▲166.6267.01 ▲12.28
Media Library /wp-admin/upload.php1,397 ▲34.19 ▼0.06100.66 ▼22.0944.39 ▼5.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function X3P0\\PoweredBy\\untrailingslashit() in wp-content/plugins/x3p0-powered-by/src/functions-helpers.php:29

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: block, blocks, gutenberg

x3p0-powered-by/plugin.php 77% from 13 tests

Analyzing the main PHP file in "X3P0 Powered By" version 1.0.0
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("6.0" instead of "5.9")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("x3p0-powered-by.php" instead of "plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin585 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
Markdown3690298
PHP527112116
JavaScript42150103
JSON10062
Sass1005
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin