10% xxxp

Code Review | xxxp

WordPress plugin xxxp scored10%from 54 tests.

About plugin

  • Plugin page: xxxp
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.8
  • WordPress version: 6.3.1
  • First release: Jan 24, 2014
  • Latest release: Apr 8, 2014
  • Number of updates: 7
  • Update frequency: every 10.7 days
  • Top authors: kazunii (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,098 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/xxxp/xxxp.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; xxxp has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼58.79ms] Passed 4 tests

An overview of server-side resources used by xxxp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.384.47 ▼39.12
Dashboard /wp-admin2.11 ▼1.246.51 ▼67.83
Posts /wp-admin/edit.php2.11 ▼1.256.48 ▼39.43
Add New Post /wp-admin/post-new.php2.11 ▼3.785.68 ▼88.78
Media Library /wp-admin/upload.php2.11 ▼1.126.06 ▼25.11
xxxp /wp-admin/options-general.php?page=xxxp/xxxp.php2.116.32

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_xxxp

Browser metrics Passed 4 tests

Checking browser requirements for xxxp
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,993 ▲22214.20 ▼0.247.04 ▲4.9643.57 ▼0.77
Dashboard /wp-admin2,225 ▲375.05 ▲0.17102.73 ▼2.7248.52 ▲8.86
Posts /wp-admin/edit.php2,102 ▲102.13 ▲0.1439.16 ▼0.8538.47 ▲3.24
Add New Post /wp-admin/post-new.php1,521 ▼723.27 ▲4.95690.01 ▲79.3263.64 ▲18.49
Media Library /wp-admin/upload.php1,404 ▲194.29 ▲0.08111.95 ▲11.3857.75 ▲14.16
xxxp /wp-admin/options-general.php?page=xxxp/xxxp.php8311.9129.5456.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/xxxp/xxxp.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; xxxp has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_xxxp
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=xxxp/xxxp.php
    • > Deprecated in wp-content/plugins/xxxp/xxxp.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; xxxp has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=xxxp/xxxp.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=xxxp/xxxp.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery.clientenv.js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=xxxp/xxxp.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the xxxp_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=xxxp/xxxp.php
    • > Deprecated in wp-content/plugins/xxxp/xxxp.php+116
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=xxxp/xxxp.php
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in xxxp is deprecated since version 4.3.0! Use __construct() instead.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=xxxp/xxxp.php
    • > Notice in wp-content/plugins/xxxp/xxxp.php+149
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/xxxp/xxxp.php:28

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=xxxp/xxxp.php
    • > Network (severe)
    https://pbs.twimg.com/profile_images/2074468470/_______mini.jpg - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

xxxp/xxxp.php Passed 13 tests

This is the main PHP file of "xxxp" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
xxxp(ぺけぺけえっくすぴー) is plug in which can give warning for a user of Windows XP.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin193 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11726138
JavaScript201255

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin