83% feexpay

Code Review | FeexPay

WordPress plugin FeexPay scored83%from 54 tests.

About plugin

  • Plugin page: feexpay
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2023
  • Latest release: Jun 7, 2023
  • Number of updates: 24
  • Update frequency: every 2.8 days
  • Top authors: lavedettemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /450 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.00MB] [CPU: ▲1.20ms] Passed 4 tests

An overview of server-side resources used by FeexPay
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.28 ▼1.38
Dashboard /wp-admin3.31 ▲0.0050.67 ▲2.21
Posts /wp-admin/edit.php3.36 ▲0.0050.31 ▲5.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.89 ▲6.89
Media Library /wp-admin/upload.php3.24 ▲0.0034.04 ▼1.88

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 138 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for FeexPay
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.321.57 ▼0.1540.78 ▼2.03
Dashboard /wp-admin2,195 ▲185.63 ▲0.0293.09 ▲3.7042.02 ▲3.11
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0639.14 ▲2.9135.23 ▲0.79
Add New Post /wp-admin/post-new.php1,529 ▲123.17 ▲0.25609.53 ▼71.2357.12 ▼3.41
Media Library /wp-admin/upload.php1,403 ▲64.14 ▼0.0298.16 ▼6.7742.34 ▼6.37

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 45× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/feexpay/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/feexpay/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/feexpay/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UploadedFileInterface' not found in wp-content/plugins/feexpay/vendor/guzzlehttp/psr7/src/UploadedFile.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/feexpay/vendor/psr/http-message/src/RequestInterface.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/feexpay/vendor/guzzlehttp/psr7/src/Stream.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/feexpay/vendor/guzzlehttp/psr7/src/Uri.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/feexpay/vendor/guzzlehttp/guzzle/src/Client.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/feexpay/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/feexpay/vendor/guzzlehttp/promises/src/EachPromise.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #2, #3 in feexpay/assets to your readme.txt
You can take inspiration from this readme.txt

feexpay/wp-feexpay.php 77% from 13 tests

The entry point to "FeexPay" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("feexpay.php" instead of "wp-feexpay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected14,584 lines of code in 126 files:
LanguageFilesBlank linesComment linesLines of code
PHP1011,8045,0698,677
Markdown111,00603,212
JavaScript43361771,411
CSS227011740
JSON700535
make1409

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity13.61
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces12
Interfaces14
Traits2
Classes68
▷ Abstract classes00.00%
▷ Concrete classes68100.00%
▷ Final classes1014.71%
Methods674
▷ Static methods8212.17%
▷ Public methods55482.20%
▷ Protected methods40.59%
▷ Private methods11617.21%
Functions145
▷ Named functions5940.69%
▷ Anonymous functions8659.31%
Constants66
▷ Global constants00.00%
▷ Class constants66100.00%
▷ Public constants66100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/feexpay_logo.png2.67KB1.83KB▼ 31.35%