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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.25 ▼1.21 | 4.81 ▼36.33 |
Dashboard /wp-admin | 2.27 ▼1.03 | 5.88 ▼39.92 |
Posts /wp-admin/edit.php | 2.27 ▼1.09 | 6.14 ▼39.91 |
Add New Post /wp-admin/post-new.php | 2.27 ▼3.62 | 6.65 ▼81.91 |
Media Library /wp-admin/upload.php | 2.27 ▼0.96 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲137 | 14.17 ▼0.59 | 5.83 ▲3.85 | 40.27 ▼9.03 |
Dashboard /wp-admin | 2,230 ▲42 | 4.96 ▲0.03 | 101.56 ▼6.44 | 84.92 ▲39.99 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.21 ▲0.20 | 36.91 ▼1.06 | 34.70 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 17.71 ▲0.05 | 743.08 ▲87.08 | 36.93 ▼25.56 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.27 ▼0.02 | 95.40 ▼15.03 | 75.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
- > PHP Warning
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 189 | 460 | 1,050 |
JavaScript | 5 | 65 | 96 | 641 |
CSS | 2 | 13 | 23 | 144 |
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 code | 0.32 |
Average class complexity | 29.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 5.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/19x19/sort_asc_disabled.png | 0.16KB | 0.25KB | 0.00% |
assets/images/icons/16x16/testimonials.png | 0.63KB | 0.71KB | 0.00% |
assets/images/icons/19x19/sort_both.png | 0.22KB | 0.29KB | 0.00% |
assets/images/icons/19x19/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/images/icons/19x19/sort_desc_disabled.png | 0.15KB | 0.25KB | 0.00% |