83% yogeta-wp-cloud

Code Review | Yogeta WP Cloud

WordPress plugin Yogeta WP Cloud scored83%from 54 tests.

About plugin

  • Plugin page: yogeta-wp-cloud
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2022
  • Latest release: Nov 20, 2022
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: yogeta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /122 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.68MB] [CPU: ▼18.04ms] Passed 4 tests

Server-side resources used by Yogeta WP Cloud
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.35 ▲0.90
Dashboard /wp-admin3.32 ▲0.0149.80 ▲2.54
Posts /wp-admin/edit.php3.37 ▲0.0152.81 ▼3.86
Add New Post /wp-admin/post-new.php3.13 ▼2.7636.94 ▼69.70
Media Library /wp-admin/upload.php3.24 ▲0.0139.62 ▲0.50

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Yogeta WP Cloud
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.23 ▼0.331.82 ▼0.3643.53 ▲1.30
Dashboard /wp-admin2,216 ▲365.51 ▼0.0586.63 ▼8.3550.87 ▲8.20
Posts /wp-admin/edit.php2,130 ▲302.06 ▲0.0635.18 ▼7.2345.78 ▲8.51
Add New Post /wp-admin/post-new.php1,704 ▲17822.41 ▼0.63653.75 ▼18.9461.01 ▼9.74
Media Library /wp-admin/upload.php1,494 ▲974.19 ▼0.0599.38 ▼2.5548.60 ▲4.10

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
Everything seems fine, however 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yogeta-wp-cloud/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yogeta-wp-cloud/functions.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (insert your WordPress details), #2 (insert your Yogeta api token), #3 (take your site to whole new level at Yogeta)
You can take inspiration from this readme.txt

yogeta-wp-cloud/y-migrate.php 77% from 13 tests

This is the main PHP file of "Yogeta WP Cloud" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.7")
  • Main file name: Name the main plugin file the same as the plugin slug ("yogeta-wp-cloud.php" instead of "y-migrate.php")
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.4.0" instead of "5.4")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,712 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP48733704
SVG500594
CSS480167358
JavaScript212139
Sass12017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions27
▷ Named functions2696.30%
▷ Anonymous functions13.70%
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
There were not PNG files found in your plugin