78% wp-theme-shapeshifter-extensions

Code Review | WP Theme ShapeShifter Extensions

WordPress plugin WP Theme ShapeShifter Extensions scored78%from 54 tests.

About plugin

  • Plugin page: wp-theme-shapeshi...
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.5
  • WordPress version: 6.3.1
  • First release: May 17, 2016
  • Latest release: Jan 4, 2019
  • Number of updates: 90
  • Update frequency: every 10.7 days
  • Top authors: Nora0123456789 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,476 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.06ms] Passed 4 tests

This is a short check of server-side resources used by WP Theme ShapeShifter Extensions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1043.83 ▲2.80
Dashboard /wp-admin3.40 ▲0.0650.91 ▼16.56
Posts /wp-admin/edit.php3.52 ▲0.1644.70 ▼2.55
Add New Post /wp-admin/post-new.php5.98 ▲0.1088.87 ▼11.49
Media Library /wp-admin/upload.php3.33 ▲0.1039.01 ▲2.35

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 283 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Theme ShapeShifter Extensions
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲4414.74 ▲0.431.93 ▼0.0145.43 ▼1.41
Dashboard /wp-admin2,212 ▲64.87 ▼0.02111.41 ▲5.5342.64 ▲3.05
Posts /wp-admin/edit.php2,103 ▲62.05 ▲0.0834.17 ▼3.6030.18 ▼5.09
Add New Post /wp-admin/post-new.php1,545 ▲1222.99 ▲0.05604.12 ▼31.0453.43 ▼1.75
Media Library /wp-admin/upload.php1,400 ▲34.25 ▲0.01104.92 ▼4.9042.46 ▼7.39

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following
  • 11× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/wp-theme-shapeshifter-extensions/templates/admin-js/tinymce/popup-forms/html.php
    • > /wp-content/plugins/wp-theme-shapeshifter-extensions/templates/admin-js/tinymce/inserts/link.php
    • > /wp-content/plugins/wp-theme-shapeshifter-extensions/templates/admin-js/tinymce/inserts/column.php
    • > /wp-content/plugins/wp-theme-shapeshifter-extensions/templates/admin-js/tinymce/inserts/google-map.php
    • > /wp-content/plugins/wp-theme-shapeshifter-extensions/templates/admin-js/tinymce/inserts/shortcodes.php
    • > /wp-content/plugins/wp-theme-shapeshifter-extensions/templates/admin-js/tinymce/inserts/row.php
    • > /wp-content/plugins/wp-theme-shapeshifter-extensions/templates/admin-js/tinymce/inserts/image-slider.php
    • > /wp-content/plugins/wp-theme-shapeshifter-extensions/templates/admin-js/tinymce/popup-forms/google-map.php
    • > /wp-content/plugins/wp-theme-shapeshifter-extensions/templates/admin-js/tinymce/inserts/table.php
    • > /wp-content/plugins/wp-theme-shapeshifter-extensions/templates/admin-js/tinymce/popup-forms/row.php
  • 190× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/wp-theme-shapeshifter-extensions/includes/exec/define/required-consts.php:26
    • > PHP Warning
      include_once(): Failed opening 'SHAPESHIFTER_EXTENSIONS_INCLUDES_DIRpage-view-counter/class-shapeshifter-page-view-count.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-theme-shapeshifter-extensions/includes/exec/include/required-files.php on line 105
    • > PHP Warning
      include_once(SHAPESHIFTER_EXTENSIONS_INCLUDES_DIRfunctions/functions-frontend.php): failed to open stream: No such file or directory in wp-content/plugins/wp-theme-shapeshifter-extensions/includes/exec/include/required-files.php on line 24
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/wp-theme-shapeshifter-extensions/includes/walkers/class-sse-walker-nav-menu-edit.php:8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-theme-shapeshifter-extensions/templates/admin-js/widget-area.php on line 3
    • > PHP Warning
      Use of undefined constant SHAPESHIFTER_EXTENSIONS_THIRD_DIR - assumed 'SHAPESHIFTER_EXTENSIONS_THIRD_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-theme-shapeshifter-extensions/includes/exec/include/required-files.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-theme-shapeshifter-extensions/templates/admin-js/widget-area.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-theme-shapeshifter-extensions/includes/admin/admin-page/view/page-pixabay-media-fetcher.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/wp-theme-shapeshifter-extensions/includes/3rd/customizer/alpha-color-picker/alpha-color-picker.php:24
    • > PHP Warning
      include_once(SHAPESHIFTER_EXTENSIONS_INCLUDES_DIRfrontend/class-sse-frontend-filter-manager.php): failed to open stream: No such file or directory in wp-content/plugins/wp-theme-shapeshifter-extensions/includes/exec/include/required-files.php on line 111

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-theme-shapeshifter-extensions === )
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

wp-theme-shapeshifter-extensions/wp-theme-shapeshifter-extensions.php Passed 13 tests

The main PHP file in "WP Theme ShapeShifter Extensions" ver. 1.2.7 adds more information about the plugin and also serves as the entry point for this plugin
36 characters long description:
Extensions for WP Theme ShapeShifter

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin51,499 lines of code in 212 files:
LanguageFilesBlank linesComment linesLines of code
PHP1255,5895,90522,184
CSS261,36878010,656
JavaScript493,3532,2669,954
PO File11,5393,1542,809
Sass526002,745
SVG3002,726
JSON100281
Markdown2380144

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity30.54
▷ Minimum class complexity1.00
▷ Maximum class complexity202.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes69
▷ Abstract classes11.45%
▷ Concrete classes6898.55%
▷ Final classes11.47%
Methods880
▷ Static methods10612.05%
▷ Public methods75085.23%
▷ Protected methods12714.43%
▷ Private methods30.34%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants83
▷ Global constants5768.67%
▷ Class constants2631.33%
▷ Public constants26100.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
31 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/overlays/09.png0.13KB0.12KB▼ 13.87%
includes/3rd/vegas/overlays/05.png0.21KB0.10KB▼ 52.11%
includes/3rd/vegas/overlays/07.png0.21KB0.10KB▼ 51.63%
assets/images/linebutton/linebutton_36x60.png1.81KB1.90KB0.00%
assets/css/transparency-grid.png2.58KB2.80KB0.00%