78% wpshed-theme-extras

Code Review | WPshed Theme Extras

WordPress plugin WPshed Theme Extras scored78%from 54 tests.

About plugin

  • Plugin page: wpshed-theme-extras
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.4
  • WordPress version: 6.3.1
  • First release: Apr 12, 2016
  • Latest release: Apr 20, 2016
  • Number of updates: 52
  • Update frequency: every 7.5 days
  • Top authors: i.Stefan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,107 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
Installer ran successfully

Server metrics [RAM: ▲0.71MB] [CPU: ▼2.48ms] Passed 4 tests

Analyzing server-side resources used by WPshed Theme Extras
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.15 ▲0.6944.93 ▲0.80
Dashboard /wp-admin4.08 ▲0.7347.72 ▼10.02
Posts /wp-admin/edit.php4.13 ▲0.7750.29 ▲4.14
Add New Post /wp-admin/post-new.php6.60 ▲0.7194.68 ▼4.84
Media Library /wp-admin/upload.php3.94 ▲0.7141.72 ▲9.60
Theme Extras /wp-admin/themes.php?page=wte4.0534.14

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 16 new options
New WordPress options
widget_user-profile-wte
widget_theysaidso_widget
widget_image-wte
can_compress_scripts
widget_social-icons-wte
widget_services-wte
widget_hero-wte
widget_recent-posts
db_upgraded
theysaidso_admin_options
...

Browser metrics Passed 4 tests

A check of browser resources used by WPshed Theme Extras
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.23 ▼1.141.75 ▼0.1144.01 ▲0.21
Dashboard /wp-admin2,210 ▲225.91 ▲0.01108.36 ▼5.8643.24 ▼3.99
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0340.54 ▼1.3235.31 ▼0.58
Add New Post /wp-admin/post-new.php1,517 ▲317.66 ▲0.06679.00 ▼10.3846.19 ▼11.18
Media Library /wp-admin/upload.php1,392 ▲14.19 ▼0.0296.94 ▼5.5841.27 ▼0.58
Theme Extras /wp-admin/themes.php?page=wte1,1531.9628.4828.66

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
  • The uninstall procedure has failed, leaving 16 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_image-wte
    • widget_cta-wte
    • widget_featured-page-wte
    • db_upgraded
    • widget_social-icons-wte
    • widget_price-table-wte
    • widget_featured-post-wte
    • widget_hero-wte
    • ...

Smoke tests 50% 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpshed-theme-extras/inc/functions-admin-themes.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpshed-theme-extras/inc/widgets/social-widget.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpshed-theme-extras/inc/functions-widgets.php:165
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpshed-theme-extras/inc/widgets/featured-page-widget.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpshed-theme-extras/inc/widgets/price-table-widget.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wpshed-theme-extras/inc/functions-shortcodes.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wte_get_option() in wp-content/plugins/wpshed-theme-extras/inc/post-type-portfolio.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpshed-theme-extras/inc/widgets/image-widget.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpshed-theme-extras/inc/widgets/call-to-action-widget.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpshed-theme-extras/inc/functions-admin-settings.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/themes.php?page=wte
    • > Javascript (severe) in unknown
    /wp-content/plugins/wpshed-theme-extras/js/admin.js?ver=1.0.3 4:32 Uncaught TypeError: $(...).sortable is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: widget, testimonials, image, shortcode, portfolio...

wpshed-theme-extras/wpshed-theme-extras.php 92% from 13 tests

This is the main PHP file of "WPshed Theme Extras" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 222 characters long)

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 detected4,923 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP291,1447673,657
SVG103534
CSS410071387
JavaScript78837206
Markdown1790139

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.58
▷ Minimum class complexity2.00
▷ Maximum class complexity20.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions84
▷ Named functions84100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/dot.png0.07KB0.10KB0.00%
images/globe.png3.54KB2.65KB▼ 25.14%