72% exxp-wp

Code Review | Exxp

WordPress plugin Exxp scored72%from 54 tests.

About plugin

  • Plugin page: exxp-wp
  • Plugin version: 2.6.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Oct 14, 2020
  • Latest release: Jun 20, 2023
  • Number of updates: 15
  • Update frequency: every 75.9 days
  • Top authors: howofr (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /1,911 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.27MB] [CPU: ▼4.69ms] Passed 4 tests

A check of server-side resources used by Exxp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2641.12 ▼2.99
Dashboard /wp-admin3.62 ▲0.3146.06 ▼10.10
Posts /wp-admin/edit.php3.67 ▲0.3150.50 ▲3.72
Add New Post /wp-admin/post-new.php6.16 ▲0.2787.90 ▼9.35
Media Library /wp-admin/upload.php3.48 ▲0.2537.83 ▲3.68
Exxp /wp-admin/options-general.php?page=exxp_wp3.5431.83

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Exxp
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲19913.51 ▼0.928.24 ▲6.3438.71 ▼4.95
Dashboard /wp-admin2,214 ▲265.88 ▼0.03108.90 ▼7.6741.59 ▼2.68
Posts /wp-admin/edit.php2,117 ▲282.01 ▼0.0439.58 ▲2.9535.68 ▲2.03
Add New Post /wp-admin/post-new.php6,222 ▲4,70326.01 ▲2.73894.15 ▲271.5658.83 ▲9.02
Media Library /wp-admin/upload.php1,396 ▲54.17 ▲0.0094.57 ▼2.4143.97 ▼2.32
Exxp /wp-admin/options-general.php?page=exxp_wp7191.536.5422.31

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=exxp_wp
    • > Notice in wp-content/plugins/exxp-wp/admin/partials/exxp_wp-admin-display.php+25
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=exxp_wp
    • > Notice in wp-content/plugins/exxp-wp/admin/partials/exxp_wp-admin-display.php+103
    Undefined index: posting-key-display

SRP 0% 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× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/exxp-wp/public/partials/exxp_wp-public-display.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/exxp-wp/admin/partials/exxp_wp-admin-display.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/exxp-wp/admin/partials/exxp_wp-user-display.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
4 plugin tags: blockchain, wordpress, monetization, hive

exxp-wp/exxp_wp.php 77% from 13 tests

The main PHP file in "Exxp" ver. 2.6.10 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("exxp-wp.php" instead of "exxp_wp.php")

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
Everything looks great! No dangerous files found in this plugin1,414 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP164926761,349
CSS14030
Markdown17028
JavaScript35347

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity30.90
▷ Minimum class complexity1.00
▷ Maximum class complexity238.00
Average method complexity5.27
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes220.00%
Methods70
▷ Static methods710.00%
▷ Public methods6288.57%
▷ Protected methods00.00%
▷ Private methods811.43%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin