89% smart-system-eat-delivery-xcloud-pro

Code Review | Smart System Eat Delivery by xCloud.pro

WordPress plugin Smart System Eat Delivery by xCloud.pro scored89%from 54 tests.

About plugin

  • Plugin page: smart-system-eat-...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-4.9.1
  • WordPress version: 6.3.1
  • First release: Nov 22, 2017
  • Latest release: Apr 14, 2023
  • Number of updates: 7
  • Update frequency: every 281.3 days
  • Top authors: lucianopreite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /734 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.32ms] Passed 4 tests

Server-side resources used by Smart System Eat Delivery by xCloud.pro
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.07 ▼2.48
Dashboard /wp-admin3.33 ▲0.0349.52 ▼4.75
Posts /wp-admin/edit.php3.38 ▲0.0250.80 ▲1.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.29 ▼20.20
Media Library /wp-admin/upload.php3.25 ▲0.0236.92 ▼1.83

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Smart System Eat Delivery by xCloud.pro
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.23 ▼0.141.85 ▲0.0941.69 ▼1.73
Dashboard /wp-admin2,205 ▲285.54 ▼0.1289.74 ▼1.3539.94 ▼3.83
Posts /wp-admin/edit.php2,116 ▲161.99 ▼0.0235.01 ▼0.2240.42 ▲3.61
Add New Post /wp-admin/post-new.php1,539 ▲1123.17 ▼0.15649.48 ▼25.9854.45 ▼8.63
Media Library /wp-admin/upload.php1,416 ▲194.24 ▲0.0896.67 ▼12.4543.43 ▼5.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: Please take inspiration from this readme.txt

smart-system-eat-delivery-xcloud-pro/xcloud-smart-system-eat-delivery.php 77% from 13 tests

"Smart System Eat Delivery by xCloud.pro" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("smart-system-eat-delivery-xcloud-pro.php" instead of "xcloud-smart-system-eat-delivery.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 235 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin136 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3292482
PO File1255154

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin