79% xylus-toolkit

Code Review | Xylus Toolkit

WordPress plugin Xylus Toolkit scored79%from 54 tests.

About plugin

  • Plugin page: xylus-toolkit
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Mar 25, 2016
  • Latest release: Nov 16, 2017
  • Number of updates: 10
  • Update frequency: every 60.2 days
  • Top authors: xylus (80%)Dharm1025 (30%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,911 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.19MB] [CPU: ▼4.73ms] Passed 4 tests

This is a short check of server-side resources used by Xylus Toolkit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1837.23 ▼9.45
Dashboard /wp-admin3.82 ▲0.5250.11 ▲3.79
Posts /wp-admin/edit.php3.59 ▲0.2349.11 ▼4.94
Add New Post /wp-admin/post-new.php6.05 ▲0.1781.43 ▼5.28
Media Library /wp-admin/upload.php3.40 ▲0.1735.31 ▲0.77

Server storage [IO: ▲0.10MB] [DB: ▲0.05MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Xylus Toolkit: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,999 ▲25313.20 ▼1.561.84 ▼0.0538.85 ▼6.02
Dashboard /wp-admin2,415 ▲2275.88 ▲1.0098.54 ▼17.4193.82 ▲49.07
Posts /wp-admin/edit.php2,091 ▲21.99 ▼0.0436.65 ▲2.1735.75 ▼0.03
Add New Post /wp-admin/post-new.php1,531 ▲1723.25 ▲5.74640.79 ▼49.7649.99 ▼5.66
Media Library /wp-admin/upload.php1,387 ▼44.23 ▼0.0394.61 ▼6.7342.45 ▼2.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/xylus-toolkit/admin/partials/xylus-toolkit-admin-display.php
    • > /wp-content/plugins/xylus-toolkit/public/partials/xylus-toolkit-public-display.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xylus-toolkit/includes/class-xylus-toolkit-post-types.php:688
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xylus-toolkit/admin/metabox/xylus-toolkit-metabox.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: xylus, xylus themes, toolkit, theme

xylus-toolkit/xylus-toolkit.php Passed 13 tests

"Xylus Toolkit" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
94 characters long description:
The Xylus Toolkit extends functionality to Xylus Themes, providing custom post types and more.

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
Everything looks great! No dangerous files found in this plugin985 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP18247660960
CSS20419
JavaScript24546

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.92
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods54
▷ Static methods23.70%
▷ Public methods4990.74%
▷ Protected methods00.00%
▷ Private methods59.26%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected