10% creativesignal-testimonial

Code Review | CreativeSignal Testimonials

WordPress plugin CreativeSignal Testimonials scored10%from 54 tests.

About plugin

  • Plugin page: creativesignal-te...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4.2
  • WordPress version: 6.3.1
  • First release: Dec 2, 2012
  • Latest release: Dec 5, 2012
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: creativesignal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,056 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/creativesignal-testimonial/creativesignal-testimonials.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; CreativeSignalTestimonial has a deprecated constructor

Server metrics [RAM: ▼1.74MB] [CPU: ▼49.52ms] Passed 4 tests

This is a short check of server-side resources used by CreativeSignal Testimonials
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.25 ▼1.214.81 ▼36.33
Dashboard /wp-admin2.27 ▼1.035.88 ▼39.92
Posts /wp-admin/edit.php2.27 ▼1.096.14 ▼39.91
Add New Post /wp-admin/post-new.php2.27 ▼3.626.65 ▼81.91
Media Library /wp-admin/upload.php2.27 ▼0.965.99 ▼32.55

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 20 new files
Database: 1 new table, 7 new options
New tables
wp_creativesignal_testimonials
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_creativesignal_testimonial_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for CreativeSignal Testimonials
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲13714.17 ▼0.595.83 ▲3.8540.27 ▼9.03
Dashboard /wp-admin2,230 ▲424.96 ▲0.03101.56 ▼6.4484.92 ▲39.99
Posts /wp-admin/edit.php2,113 ▲242.21 ▲0.2036.91 ▼1.0634.70 ▼3.71
Add New Post /wp-admin/post-new.php1,533 ▲1917.71 ▲0.05743.08 ▲87.0836.93 ▼25.56
Media Library /wp-admin/upload.php1,403 ▲124.27 ▼0.0295.40 ▼15.0375.14 ▲21.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/creativesignal-testimonial/creativesignal-testimonials.php+17
    Methods with the same name as their class will not be constructors in a future version of PHP; CreativeSignalTestimonial has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      include_once(): Failed opening 'WP_CS_TESTIMONIALS_PLUGIN_DIR/libraries/3rd-part/json.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/creativesignal-testimonial/libraries/mine/utils.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/creativesignal-testimonial/creativesignal-defines.php:4
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/creativesignal-testimonial/creativesignal-defines.php on line 3
    • > PHP Notice
      Undefined variable: wpdb in wp-content/plugins/creativesignal-testimonial/creativesignal-defines.php on line 3
    • > PHP Warning
      include_once(WP_CS_TESTIMONIALS_PLUGIN_DIR/libraries/3rd-part/json.php): failed to open stream: No such file or directory in wp-content/plugins/creativesignal-testimonial/libraries/mine/utils.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/creativesignal-testimonial/creativesignal-defines.php:4
    • > PHP Warning
      Use of undefined constant WP_CS_TESTIMONIALS_PLUGIN_DIR - assumed 'WP_CS_TESTIMONIALS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/creativesignal-testimonial/libraries/mine/utils.php on line 2
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/creativesignal-testimonial/creativesignal-defines.php on line 3

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)
No browser errors were detected

Optimizations

Plugin configuration 93% 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
3 plugin tags: testimonials, creativesignal, testimonial

creativesignal-testimonial/creativesignal-testimonials.php 85% from 13 tests

The main PHP file in "CreativeSignal Testimonials" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("creativesignal-testimonial.php" instead of "creativesignal-testimonials.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 228 characters long)

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,835 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP51894601,050
JavaScript56596641
CSS21323144

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity29.67
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity5.91
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icons/19x19/sort_asc_disabled.png0.16KB0.25KB0.00%
assets/images/icons/16x16/testimonials.png0.63KB0.71KB0.00%
assets/images/icons/19x19/sort_both.png0.22KB0.29KB0.00%
assets/images/icons/19x19/sort_desc.png0.15KB0.25KB0.00%
assets/images/icons/19x19/sort_desc_disabled.png0.15KB0.25KB0.00%