78% wds-themes-manager

Code Review | WDS Themes Manager

WordPress plugin WDS Themes Manager scored 78% from 54 tests.

About plugin

  • Plugin page: wds-themes-manager
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 21, 2018
  • Latest release: Feb 6, 2018
  • Number of updates: 5
  • Update frequency: every 4.2 days
  • Top authors: webdesignsun (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 594 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by WDS Themes Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.12 ▲0.6678.29 ▲37.04
Dashboard /wp-admin3.83 ▲0.5287.87 ▲34.23
Posts /wp-admin/edit.php3.88 ▲0.5285.50 ▲39.24
Add New Post /wp-admin/post-new.php6.36 ▲0.48129.78 ▲35.14
Media Library /wp-admin/upload.php3.69 ▲0.4695.41 ▲60.40

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 94 new files
Database: 1 new table, 10 new options
New tables
wp_wdstm_base
New WordPress options
wdstm_order_filter
widget_recent-comments
can_compress_scripts
db_upgraded
wdstm_default_theme
theysaidso_admin_options
wdstm_sign_db_version
widget_theysaidso_widget
wdstm-activate-plugin
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WDS Themes Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9813.55 ▼1.042.38 ▲0.5237.18 ▼3.47
Dashboard /wp-admin2,261 ▲705.45 ▲0.56120.56 ▲19.7144.14 ▼2.50
Posts /wp-admin/edit.php2,152 ▲632.51 ▲0.5240.05 ▲0.8330.55 ▼6.39
Add New Post /wp-admin/post-new.php1,720 ▲17821.86 ▲3.50690.55 ▲52.4538.13 ▼19.61
Media Library /wp-admin/upload.php1,446 ▲644.68 ▲0.54101.63 ▲4.2743.63 ▼0.48

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% from 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wds-themes-manager/wds-themes-manager.php
  • 6× 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/wds-themes-manager/includes/wdstm_ajax.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'Sinergi\\BrowserDetector\\DetectorInterface' not found in wp-content/plugins/wds-themes-manager/includes/vendor/sinergi/browser-detector/src/LanguageDetector.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Sinergi\\BrowserDetector\\DetectorInterface' not found in wp-content/plugins/wds-themes-manager/includes/vendor/sinergi/browser-detector/src/OsDetector.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Sinergi\\BrowserDetector\\DetectorInterface' not found in wp-content/plugins/wds-themes-manager/includes/vendor/sinergi/browser-detector/src/DeviceDetector.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wds-themes-manager/includes/wdstm_datepicker.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Sinergi\\BrowserDetector\\DetectorInterface' not found in wp-content/plugins/wds-themes-manager/includes/vendor/sinergi/browser-detector/src/BrowserDetector.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: theme manager, theme styling, wordpress theme, custom theme, theme...

wds-themes-manager/wds-themes-manager.php 92% from 13 tests

"WDS Themes Manager" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin7,004 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP289701,6964,594
CSS6231401,428
JavaScript5131113833
JSON30091
SVG224158

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity28.80
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity3.51
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods166
▷ Static methods7142.77%
▷ Public methods14285.54%
▷ Protected methods21.20%
▷ Private methods2213.25%
Functions51
▷ Named functions51100.00%
▷ Anonymous functions00.00%
Constants79
▷ Global constants56.33%
▷ Class constants7493.67%
▷ Public constants74100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
26 compressed PNG files occupy 0.47MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Screenshot-10.png35.28KB35.88KB0.00%
Screenshot-12.png28.80KB28.85KB0.00%
Screenshot-0.png27.89KB27.99KB0.00%
Screenshot-5.png35.74KB36.74KB0.00%
assets/css/images/ui-icons_cc0000_256x240.png3.19KB3.49KB0.00%