84% wyvern-toolkit

Code Review | Wyvern Toolkit

WordPress plugin Wyvern Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: wyvern-toolkit
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1
  • WordPress version: 6.3.1
  • First release: Jul 31, 2022
  • Latest release: Feb 6, 2023
  • Number of updates: 17
  • Update frequency: every 11.8 days
  • Top authors: codewyvern (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /608 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
Installer ran successfully

Server metrics [RAM: ▲0.49MB] [CPU: ▲6.39ms] Passed 4 tests

An overview of server-side resources used by Wyvern Toolkit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4845.83 ▲5.51
Dashboard /wp-admin3.80 ▲0.5058.94 ▲7.65
Posts /wp-admin/edit.php3.85 ▲0.4955.74 ▲2.57
Add New Post /wp-admin/post-new.php6.42 ▲0.53103.26 ▲9.82
Media Library /wp-admin/upload.php3.73 ▲0.4950.63 ▲11.48

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wyvern Toolkit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲14315.51 ▲0.981.62 ▼0.1139.84 ▼4.51
Dashboard /wp-admin2,310 ▲1406.91 ▲1.30124.29 ▲23.1441.19 ▲0.38
Posts /wp-admin/edit.php2,217 ▲1143.98 ▲1.9783.39 ▲43.9940.50 ▲2.28
Add New Post /wp-admin/post-new.php1,571 ▲3424.44 ▲6.16695.96 ▲55.4537.81 ▼23.77
Media Library /wp-admin/upload.php1,515 ▲1155.62 ▲1.38159.33 ▲58.5647.98 ▲5.83
Modules /wp-admin/admin.php?page=wyvern-toolkit#/modules1,10010.24378.30111.85
Settings /wp-admin/admin.php?page=wyvern-toolkit#/settings1,25111.83303.1878.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant WP_DEBUG - assumed 'WP_DEBUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/wyvern-toolkit/modules/import-export/inc/importers/content-importer/init.php on line 9
    • > PHP Warning
      require_once(WYVERN_TOOLKIT_PATHincludes/Traits/Singleton.php): failed to open stream: No such file or directory in wp-content/plugins/wyvern-toolkit/includes/requires.php on line 35
    • > PHP Warning
      Use of undefined constant WYVERN_TOOLKIT_PATH - assumed 'WYVERN_TOOLKIT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wyvern-toolkit/includes/requires.php on line 35
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/wyvern-toolkit/modules/import-export/inc/importers/content-importer/init.php on line 13
    • > PHP Fatal error
      require_once(): Failed opening required 'WYVERN_TOOLKIT_PATHincludes/Traits/Singleton.php' (include_path='.:/usr/share/php') in wp-content/plugins/wyvern-toolkit/includes/requires.php on line 35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WyvernToolkit\\Modules\\CustomScripts\\Functions\\add_filter() in wp-content/plugins/wyvern-toolkit/modules/custom-scripts/inc/functions.php:102
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wyvern-toolkit/modules/import-export/inc/importers/content-importer/init.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WyvernToolkit\\Modules\\Preloader\\Functions\\add_action() in wp-content/plugins/wyvern-toolkit/modules/preloader/inc/functions.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wyvern-toolkit/includes/Abstracts/RestController.php:13
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/wyvern-toolkit/modules/import-export/inc/importers/content-importer/init.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
8 plugin tags: page-speed, maintenance-mode, preloader, import-export, google-fonts...

wyvern-toolkit/wyvern-toolkit.php 92% from 13 tests

The principal PHP file in "Wyvern Toolkit" v. 1.0.6 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 246 characters long)

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
Good job! No executable or dangerous file extensions detected36,668 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
JSON60032,272
PHP571,3881,9034,349
JavaScript20041
SVG1005
CSS1001

PHP code Passed 2 tests

An short overview of 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.44
Average class complexity16.54
▷ Minimum class complexity1.00
▷ Maximum class complexity214.00
Average method complexity3.51
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces11
Interfaces0
Traits1
Classes40
▷ Abstract classes25.00%
▷ Concrete classes3895.00%
▷ Final classes12.63%
Methods248
▷ Static methods5622.58%
▷ Public methods19779.44%
▷ Protected methods4618.55%
▷ Private methods52.02%
Functions32
▷ Named functions2681.25%
▷ Anonymous functions618.75%
Constants16
▷ Global constants1381.25%
▷ Class constants318.75%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin