Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.57ms] Passed 4 tests
Analyzing server-side resources used by GC Testimonials to Testimonials Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.11 ▼2.08 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.47 ▼1.61 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.21 ▼1.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 98.11 ▼9.14 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.97 ▼0.91 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for GC Testimonials to Testimonials Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.73 ▲0.38 | 1.99 ▲0.40 | 43.99 ▲2.61 |
Dashboard /wp-admin | 2,192 ▲21 | 5.66 ▼0.00 | 91.76 ▼8.53 | 41.84 ▼2.30 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.00 ▲0.06 | 40.61 ▲3.48 | 38.03 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.99 ▼0.49 | 690.42 ▲4.50 | 55.02 ▲5.10 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.19 ▲0.02 | 97.65 ▼1.40 | 47.64 ▲2.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Almost there! Just fix the following items
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'GCT2T_DIR_LIB_ALTaihrus-framework/includes/class-aihrus-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/gc-testimonials-to-testimonials/includes/class-gc-testimonials-to-testimonials-settings.php on line 25
- > PHP Warning
Use of undefined constant GCT2T_DIR_LIB_ALT - assumed 'GCT2T_DIR_LIB_ALT' (this will throw an Error in a future version of PHP) in wp-content/plugins/gc-testimonials-to-testimonials/includes/class-gc-testimonials-to-testimonials-settings.php on line 25
- > PHP Warning
require_once(GCT2T_DIR_LIB_ALTaihrus-framework/includes/class-aihrus-common.php): failed to open stream: No such file or directory in wp-content/plugins/gc-testimonials-to-testimonials/includes/class-gc-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/gc-testimonials-to-testimonials/includes/requirements.php on line 19
- > PHP Warning
require_once(GCT2T_DIR_LIB_ALTaihrus-framework/includes/class-aihrus-settings.php): failed to open stream: No such file or directory in wp-content/plugins/gc-testimonials-to-testimonials/includes/class-gc-testimonials-to-testimonials-settings.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/gc-testimonials-to-testimonials/gc-testimonials-to-testimonials.php:29
- > PHP Fatal error
require_once(): Failed opening required 'GCT2T_DIR_LIB_ALTaihrus-framework/includes/class-aihrus-common.php' (include_path='.:/usr/share/php') in wp-content/plugins/gc-testimonials-to-testimonials/includes/class-gc-testimonials-to-testimonials.php on line 16
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/gc-testimonials-to-testimonials/includes/requirements.php on line 19
- > PHP Warning
Use of undefined constant GCT2T_DIR_LIB_ALT - assumed 'GCT2T_DIR_LIB_ALT' (this will throw an Error in a future version of PHP) in wp-content/plugins/gc-testimonials-to-testimonials/includes/class-gc-testimonials-to-testimonials.php on line 16
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gc-testimonials-to-testimonials/includes/requirements.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: gc testimonials, convert, testimonials, migration, testimonials widget
gc-testimonials-to-testimonials/gc-testimonials-to-testimonials.php Passed 13 tests
The main PHP script in "GC Testimonials to Testimonials Widget" version 1.3.1 is automatically included on every request by WordPress
74 characters long description:
Migrate GC Testimonials entries to Testimonials Widgets custom post types.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,621 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 318 | 229 | 872 |
CSS | 2 | 20 | 34 | 450 |
Markdown | 4 | 73 | 0 | 201 |
JavaScript | 1 | 27 | 20 | 98 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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_469bdd_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-bg_gloss-wave_55_5c9ccc_500x100.png | 5.69KB | 2.08KB | ▼ 63.46% |
assets/css/redmond/images/ui-icons_f9bd01_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png | 0.33KB | 0.16KB | ▼ 52.38% |