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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.43 ▼3.30 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.88 ▼5.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.42 ▼2.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.22 ▼16.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 41.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.21 ▼0.14 | 1.66 ▼0.40 | 41.38 ▼4.38 |
Dashboard /wp-admin | 2,192 ▲15 | 5.54 ▼0.12 | 85.72 ▼6.09 | 38.48 ▼3.65 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▲0.01 | 39.96 ▲2.07 | 41.47 ▲7.66 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.10 ▼0.39 | 676.92 ▲4.97 | 61.54 ▲6.22 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.13 ▼0.03 | 109.70 ▼3.16 | 46.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 319 | 226 | 839 |
CSS | 2 | 20 | 34 | 450 |
Markdown | 4 | 65 | 0 | 110 |
JavaScript | 1 | 27 | 20 | 98 |
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 code | 0.28 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 35 | 79.55% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 13 | 65.00% |
▷ Class constants | 7 | 35.00% |
▷ Public constants | 7 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/redmond/images/ui-icons_217bc0_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png | 0.29KB | 0.10KB | ▼ 65.41% |
assets/css/redmond/images/ui-icons_469bdd_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/redmond/images/ui-icons_f9bd01_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/redmond/images/ui-bg_flat_55_fbec88_40x100.png | 0.20KB | 0.08KB | ▼ 57.77% |