84% wootheme-testimonials-to-testimonials

Code Review | WooTheme Testimonials to Testimonials Widget

WordPress plugin WooTheme Testimonials to Testimonials Widget scored84%from 54 tests.

About plugin

  • Plugin page: wootheme-testimon...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.2-4.3.0
  • WordPress version: 6.3.1
  • First release: Jan 2, 2014
  • Latest release: Jun 26, 2015
  • Number of updates: 10
  • Update frequency: every 54.0 days
  • Top authors: comprock (80%)subharanjan (20%)saurabhd (20%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,471 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.04ms] Passed 4 tests

A check of server-side resources used by WooTheme Testimonials to Testimonials Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.43 ▼3.30
Dashboard /wp-admin3.31 ▲0.0049.88 ▼5.23
Posts /wp-admin/edit.php3.36 ▲0.0048.42 ▼2.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.22 ▼16.86
Media Library /wp-admin/upload.php3.23 ▲0.0041.73 ▲4.92

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WooTheme Testimonials to Testimonials Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.21 ▼0.141.66 ▼0.4041.38 ▼4.38
Dashboard /wp-admin2,192 ▲155.54 ▼0.1285.72 ▼6.0938.48 ▼3.65
Posts /wp-admin/edit.php2,100 ▲32.00 ▲0.0139.96 ▲2.0741.47 ▲7.66
Add New Post /wp-admin/post-new.php1,528 ▲223.10 ▼0.39676.92 ▲4.9761.54 ▲6.22
Media Library /wp-admin/upload.php1,403 ▲34.13 ▼0.03109.70 ▼3.1646.59 ▲1.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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wootheme-testimonials-to-testimonials/wootheme-testimonials-to-testimonials.php:29
    • > PHP Warning
      require_once(WTT2T_DIR_INCclass-wootheme-testimonials-to-testimonials-settings.php): failed to open stream: No such file or directory in wp-content/plugins/wootheme-testimonials-to-testimonials/includes/class-wootheme-testimonials-to-testimonials.php on line 16
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wootheme-testimonials-to-testimonials/includes/requirements.php on line 19
    • > PHP Warning
      Use of undefined constant WTT2T_DIR_LIB_ALT - assumed 'WTT2T_DIR_LIB_ALT' (this will throw an Error in a future version of PHP) in wp-content/plugins/wootheme-testimonials-to-testimonials/includes/class-wootheme-testimonials-to-testimonials-settings.php on line 25
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wootheme-testimonials-to-testimonials/includes/requirements.php on line 19
    • > PHP Warning
      Use of undefined constant WTT2T_DIR_INC - assumed 'WTT2T_DIR_INC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wootheme-testimonials-to-testimonials/includes/class-wootheme-testimonials-to-testimonials.php on line 16
    • > PHP Fatal error
      require_once(): Failed opening required 'WTT2T_DIR_LIB_ALTaihrus-framework/includes/class-aihrus-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/wootheme-testimonials-to-testimonials/includes/class-wootheme-testimonials-to-testimonials-settings.php on line 25
    • > PHP Warning
      require_once(WTT2T_DIR_LIB_ALTaihrus-framework/includes/class-aihrus-settings.php): failed to open stream: No such file or directory in wp-content/plugins/wootheme-testimonials-to-testimonials/includes/class-wootheme-testimonials-to-testimonials-settings.php on line 25
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wootheme-testimonials-to-testimonials/includes/requirements.php on line 19
    • > PHP Fatal error
      require_once(): Failed opening required 'WTT2T_DIR_INCclass-wootheme-testimonials-to-testimonials-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/wootheme-testimonials-to-testimonials/includes/class-wootheme-testimonials-to-testimonials.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: migration, convert, woothemes, testimonials, testimonials widget

wootheme-testimonials-to-testimonials/wootheme-testimonials-to-testimonials.php Passed 13 tests

This is the main PHP file of "WooTheme Testimonials to Testimonials Widget" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
72 characters long description:
Migrate WooTheme Testimonials entries to Testimonials custom post types.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,497 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP5319226839
CSS22034450
Markdown4650110
JavaScript1272098

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity24.00
▷ Minimum class complexity9.00
▷ Maximum class complexity47.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods44
▷ Static methods3579.55%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants1365.00%
▷ Class constants735.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/redmond/images/ui-icons_217bc0_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png0.29KB0.10KB▼ 65.41%
assets/css/redmond/images/ui-icons_469bdd_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/redmond/images/ui-icons_f9bd01_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/redmond/images/ui-bg_flat_55_fbec88_40x100.png0.20KB0.08KB▼ 57.77%