79% exly-wp

Code Review | Exly WP

WordPress plugin Exly WP scored79%from 54 tests.

About plugin

  • Plugin page: exly-wp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Jul 28, 2022
  • Latest release: Feb 28, 2023
  • Number of updates: 23
  • Update frequency: every 9.4 days
  • Top authors: myscoot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,962 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼7.67ms] Passed 4 tests

This is a short check of server-side resources used by Exly WP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2029.86 ▼14.72
Dashboard /wp-admin3.52 ▲0.2251.69 ▲6.09
Posts /wp-admin/edit.php3.64 ▲0.2845.22 ▼4.80
Add New Post /wp-admin/post-new.php6.12 ▲0.2493.60 ▼11.66
Media Library /wp-admin/upload.php3.45 ▲0.2235.06 ▲0.49

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options
exly_currency_timezone
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Exly WP: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲21813.99 ▼0.3915.76 ▲13.6243.11 ▼6.44
Dashboard /wp-admin2,225 ▲345.88 ▼0.02112.69 ▲12.4043.61 ▼2.60
Posts /wp-admin/edit.php2,108 ▲192.04 ▼0.0136.09 ▼6.6933.82 ▼4.29
Add New Post /wp-admin/post-new.php1,540 ▲2618.31 ▲0.79590.76 ▼50.3764.84 ▲14.67
Media Library /wp-admin/upload.php1,410 ▲254.20 ▼0.07101.72 ▼2.2943.19 ▼1.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • exly_currency_timezone

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/exly-wp/admin/partials/exly-wp-admin-license-after-display.php
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/exly-wp/public/partials/exly-wp-public-elementary-default.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/exly-wp/admin/partials/exly-wp-admin-display.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/exly-wp/admin/partials/exly-wp-admin-license-before-display.php:18
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/exly-wp/public/partials/exly-wp-public-modern-plans.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/exly-wp/public/partials/exly-wp-public-modern.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/exly-wp/public/partials/exly-contact-us-form.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/exly-wp/public/partials/exly-wp-public-classic-plans.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/exly-wp/public/partials/exly-wp-public-classic.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/exly-wp/public/partials/exly-wp-public-elementary-default-plans.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: appointments, listing, doctors, artists, gym

exly-wp/exly-wp.php Passed 13 tests

The principal PHP file in "Exly WP" v. 1.0.0 is loaded by WordPress automatically on each request
96 characters long description:
Launch, Manage and Grow Your Business Online Thoughtfully Designed for Professionals and Artists

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected5,928 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
JSON2202,417
PHP214336332,036
CSS8157241,185
JavaScript53131290

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity25.86
▷ Minimum class complexity1.00
▷ Maximum class complexity149.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods70
▷ Static methods22.86%
▷ Public methods6592.86%
▷ Protected methods00.00%
▷ Private methods57.14%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/partials/img/ShareIcon.png1.04KB0.58KB▼ 44.90%
public/partials/img/heartcircle.png2.22KB1.20KB▼ 45.66%
public/partials/img/whatsapp_white.png0.84KB0.58KB▼ 31.55%
public/partials/img/copyclip.png0.79KB0.56KB▼ 29.40%
public/partials/img/heartcircle-old.png2.22KB1.20KB▼ 45.66%