89% yala-themes-toolkit

Code Review | YalaThemes ToolKit

WordPress plugin YalaThemes ToolKit scored89%from 54 tests.

About plugin

  • Plugin page: yala-themes-toolkit
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.6.1
  • WordPress version: 6.3.1
  • First release: Jul 2, 2020
  • Latest release: Sep 27, 2020
  • Number of updates: 13
  • Update frequency: every 6.8 days
  • Top authors: yalathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,590 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.05MB] [CPU: ▼2.93ms] Passed 4 tests

Analyzing server-side resources used by YalaThemes ToolKit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.13 ▼4.86
Dashboard /wp-admin3.36 ▲0.0650.43 ▼0.99
Posts /wp-admin/edit.php3.47 ▲0.1252.65 ▼0.50
Add New Post /wp-admin/post-new.php5.94 ▲0.0599.22 ▼5.37
Media Library /wp-admin/upload.php3.28 ▲0.0539.25 ▲4.05

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for YalaThemes ToolKit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.301.78 ▲0.0440.68 ▼4.54
Dashboard /wp-admin2,198 ▲245.61 ▼0.0493.19 ▲3.2244.18 ▲1.37
Posts /wp-admin/edit.php2,100 ▼31.99 ▲0.0541.36 ▲3.5336.38 ▼4.28
Add New Post /wp-admin/post-new.php1,526 ▼023.04 ▼0.44607.39 ▼79.9652.76 ▲0.29
Media Library /wp-admin/upload.php1,400 ▼34.14 ▼0.1596.28 ▼4.5545.70 ▼0.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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 to be fixed:
  • Screenshots: Please add an image for screenshot #1 (YalaThemes Toolkit)
You can take inspiration from this readme.txt

yala-themes-toolkit/yalathemes-toolkit.php 77% from 13 tests

"YalaThemes ToolKit" version 1.0.1'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:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yala-themes-toolkit.php" instead of "yalathemes-toolkit.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin423 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP47840326
CSS18062
JavaScript15523
JSON120012

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity16.50
▷ Minimum class complexity3.00
▷ Maximum class complexity30.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods216.67%
▷ Public methods1083.33%
▷ Protected methods00.00%
▷ Private methods216.67%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 2.66MB with 1.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/demo/yala-travel/demo-2/demo.png523.07KB273.45KB▼ 47.72%
inc/demo/yala-travel/demo-1/demo.png910.59KB303.26KB▼ 66.70%
inc/demo/yala-travel-pro/demo-1/demo.png698.56KB300.28KB▼ 57.01%
inc/demo/yala-travel-pro/demo-2/demo.png523.07KB273.45KB▼ 47.72%
inc/demo/yala-mag/demo-1/demo.png65.81KB65.90KB0.00%