62% wp-xprs-page-builder

Code Review | WP XPRS - Page Builder

WordPress plugin WP XPRS - Page Builder scored62%from 54 tests.

About plugin

  • Plugin page: wp-xprs-page-builder
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Jul 24, 2015
  • Latest release: Oct 19, 2015
  • Number of updates: 21
  • Update frequency: every 4.8 days
  • Top authors: imxprs (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /8,121 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼35.73ms] Passed 4 tests

Server-side resources used by WP XPRS - Page Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.05 ▼11.50
Dashboard /wp-admin3.00 ▼0.3022.76 ▼31.34
Posts /wp-admin/edit.php3.01 ▼0.3524.77 ▼25.55
Add New Post /wp-admin/post-new.php3.01 ▼2.8826.17 ▼74.51
Media Library /wp-admin/upload.php3.01 ▼0.2225.14 ▼10.75
Edit /wp-admin/admin.php?page=xprs-edit3.0123.88
XPRS editor - homepage /wp-admin/options-general.php?page=xprs-homepage3.0123.29

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP XPRS - Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲5014.30 ▲0.111.78 ▼0.0742.02 ▼1.86
Dashboard /wp-admin2,205 ▲285.59 ▼0.0190.58 ▼3.5439.91 ▼1.98
Posts /wp-admin/edit.php2,113 ▲162.01 ▲0.0240.64 ▲2.7038.66 ▲1.74
Add New Post /wp-admin/post-new.php6,396 ▲4,86827.06 ▲4.00894.45 ▲209.0541.44 ▼10.47
Media Library /wp-admin/upload.php1,413 ▲134.23 ▲0.0495.68 ▼6.3742.01 ▼3.34
Edit /wp-admin/admin.php?page=xprs-edit8021.9225.7425.20
XPRS editor - homepage /wp-admin/options-general.php?page=xprs-homepage8241.6724.2924.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=xprs-homepage
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-xprs-page-builder/views/page_header_mode.php
    • > /wp-content/plugins/wp-xprs-page-builder/views/edit-page.php
    • > /wp-content/plugins/wp-xprs-page-builder/views/page.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-xprs-page-builder/views/edit-homepage.php:5
    • > PHP Notice
      Undefined variable: iframe_url in wp-content/plugins/wp-xprs-page-builder/views/edit-page.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-xprs-page-builder/wp-xprs.php:41

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 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
  • Tags: There are too many tags (26 tag instead of maximum 10)
Please take inspiration from this readme.txt

wp-xprs-page-builder/wp-xprs.php 92% from 13 tests

The main PHP script in "WP XPRS - Page Builder" version 1.1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-xprs-page-builder.php" instead of "wp-xprs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected770 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP613671770

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity74.00
▷ Minimum class complexity74.00
▷ Maximum class complexity74.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods51
▷ Static methods00.00%
▷ Public methods51100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin