84% yoonde

Code Review | yoonde

WordPress plugin yoonde scored84%from 54 tests.

About plugin

  • Plugin page: yoonde
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 2, 2020
  • Latest release: Jul 2, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: yoonde (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /282 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.02MB] [CPU: ▼8.53ms] Passed 4 tests

This is a short check of server-side resources used by yoonde
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.40 ▲1.53
Dashboard /wp-admin3.34 ▼0.0147.74 ▼19.60
Posts /wp-admin/edit.php3.39 ▲0.0354.72 ▲4.45
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.81 ▼14.06
Media Library /wp-admin/upload.php3.26 ▲0.0335.07 ▼1.98

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for yoonde
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.19 ▼0.181.96 ▼0.0744.92 ▲2.95
Dashboard /wp-admin2,207 ▲275.53 ▼0.1284.99 ▼4.7539.46 ▼2.42
Posts /wp-admin/edit.php2,115 ▲122.01 ▲0.0041.16 ▲6.0737.41 ▲1.31
Add New Post /wp-admin/post-new.php1,555 ▲2423.11 ▲0.01633.82 ▼21.5449.06 ▼7.54
Media Library /wp-admin/upload.php1,412 ▲124.26 ▼0.10101.32 ▲0.3645.07 ▲0.76

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yoonde/yoonde.php:58

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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
Attributes that need to be fixed:
  • Screenshots: Please describe screenshot #1 in yoonde/assets to your readme.txt
The official readme.txt is a good inspiration

yoonde/yoonde.php Passed 13 tests

"yoonde" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
109 characters long description:
Plugin to access the yoonde-API and create yoonde-Token automatically on "woocommerce_order_status_completed"

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
Success! There were no dangerous files found in this plugin9,001 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript132,1317,1767,394
CSS1334801,458
PHP22214149

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/favicon-96x96.png6.70KB2.19KB▼ 67.28%
css/DataTables-1.10.21/images/sort_desc.png0.15KB0.25KB0.00%
css/DataTables-1.10.21/images/sort_both.png0.20KB0.29KB0.00%
css/DataTables-1.10.21/images/sort_asc.png0.16KB0.25KB0.00%
css/DataTables-1.10.21/images/sort_desc_disabled.png0.14KB0.25KB0.00%