89% themesara-toolset

Code Review | Themesara Toolset

WordPress plugin Themesara Toolset scored89%from 54 tests.

About plugin

  • Plugin page: themesara-toolset
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Feb 22, 2021
  • Latest release: May 5, 2021
  • Number of updates: 23
  • Update frequency: every 19.7 days
  • Top authors: themesara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,033 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼3.52ms] Passed 4 tests

This is a short check of server-side resources used by Themesara Toolset
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1239.63 ▼0.70
Dashboard /wp-admin3.43 ▲0.1346.33 ▼1.16
Posts /wp-admin/edit.php3.55 ▲0.1945.21 ▼0.42
Add New Post /wp-admin/post-new.php6.01 ▲0.1280.16 ▼11.79
Media Library /wp-admin/upload.php3.36 ▲0.1234.73 ▲0.14

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Themesara Toolset
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.26 ▼1.151.70 ▼0.6144.42 ▼2.24
Dashboard /wp-admin2,206 ▲184.84 ▼1.04100.15 ▼14.0138.73 ▼10.63
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0234.22 ▼1.0235.46 ▲0.42
Add New Post /wp-admin/post-new.php1,533 ▼023.11 ▼0.08668.18 ▲5.8754.62 ▼3.60
Media Library /wp-admin/upload.php1,391 ▲64.26 ▲0.0596.47 ▼6.5342.45 ▼2.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

themesara-toolset/themesara-toolset.php 92% from 13 tests

"Themesara Toolset" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected923 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP420341794
CSS18062
JSON430043
JavaScript19524

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.50
▷ Minimum class complexity3.00
▷ Maximum class complexity32.00
Average method complexity3.75
▷ 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 Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 13.40MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/demo/sara-log-pro/fitness/demo.png696.56KB757.36KB0.00%
inc/demo/sara-log-pro/travel/demo.png494.44KB533.27KB0.00%
inc/demo/web-wave-pro/default/demo.png742.15KB801.15KB0.00%
inc/demo/web-wave-pro/grid/demo.png663.54KB721.65KB0.00%
inc/demo/web-wave-pro/list/demo.png558.58KB598.76KB0.00%