84% fenix-express

Code Review | FENIX Express

WordPress plugin FENIX Express scored84%from 54 tests.

About plugin

  • Plugin page: fenix-express
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 15, 2023
  • Latest release: Aug 15, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ahmedfenix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /44 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.91ms] Passed 4 tests

This is a short check of server-side resources used by FENIX Express
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.59 ▲0.93
Dashboard /wp-admin3.31 ▲0.0145.72 ▼6.86
Posts /wp-admin/edit.php3.36 ▲0.0144.57 ▼4.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.80 ▼6.59
Media Library /wp-admin/upload.php3.23 ▲0.0136.02 ▼5.80

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

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

Browser metrics Passed 4 tests

A check of browser resources used by FENIX Express
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.081.74 ▼0.1543.82 ▼16.66
Dashboard /wp-admin2,206 ▲185.91 ▲1.02101.87 ▼4.1444.69 ▼3.89
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0232.79 ▼7.4834.35 ▼0.02
Add New Post /wp-admin/post-new.php1,514 ▼017.42 ▼0.02652.14 ▼33.0761.72 ▲5.33
Media Library /wp-admin/upload.php1,385 ▼64.13 ▼0.08120.85 ▲18.9051.71 ▲5.33

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 take a closer look at the following
  • 63× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/fenix-express/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/fenix-express/vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/fenix-express/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/fenix-express/vendor/guzzlehttp/psr7/src/ServerRequest.php:27
    • > PHP Fatal error
      Uncaught UnexpectedValueException: creating archive "wp-content/plugins/fenix-express/vendor/paragonie/random_compat/dist/random_compat.phar" disabled by the php.ini setting phar.readonly in /var/www/wordpress/wp-content/plugins/fenix-express/vendor/paragonie/random_compat/other/build_phar.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/fenix-express/vendor/psr/http-client/src/NetworkExceptionInterface.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/fenix-express/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/fenix-express/vendor/guzzlehttp/guzzle/src/Client.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/fenix-express/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/fenix-express/vendor/guzzlehttp/promises/src/CancellationException.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: shipping, woocommerce, order tracking, fenix express, fulfillment

fenix-express/fenix-express-wc.php 92% from 13 tests

Analyzing the main PHP file in "FENIX Express" version 1.0.6
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("fenix-express.php" instead of "fenix-express-wc.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 plugin17,637 lines of code in 198 files:
LanguageFilesBlank linesComment linesLines of code
PHP1642,6167,29112,249
Markdown181,39703,965
JSON12101,255
JavaScript12221134
XML10019
SVG10012
Bourne Shell1203

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity11.46
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces18
Interfaces30
Traits10
Classes97
▷ Abstract classes22.06%
▷ Concrete classes9597.94%
▷ Final classes3536.84%
Methods900
▷ Static methods14816.44%
▷ Public methods71879.78%
▷ Protected methods616.78%
▷ Private methods12113.44%
Functions163
▷ Named functions7143.56%
▷ Anonymous functions9256.44%
Constants75
▷ Global constants56.67%
▷ Class constants7093.33%
▷ Public constants5984.29%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in 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
admin/images/icon.png1.21KB0.83KB▼ 30.71%