Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.96MB] [CPU: ▲25.16ms] Passed 4 tests
This is a short check of server-side resources used by Themereps Helper
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.74 ▲5.28 | 70.86 ▲31.05 |
Dashboard /wp-admin | 8.76 ▲5.46 | 75.25 ▲26.11 |
Posts /wp-admin/edit.php | 8.76 ▲5.41 | 77.56 ▲20.76 |
Add New Post /wp-admin/post-new.php | 9.59 ▲3.71 | 121.73 ▲25.99 |
Media Library /wp-admin/upload.php | 8.76 ▲5.54 | 66.56 ▲27.79 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 8.76 | 59.92 |
Server storage [IO: ▲3.27MB] [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: 206 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_gdpr |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
fs_accounts |
can_compress_scripts |
fs_active_plugins |
fs_debug_mode |
Browser metrics Passed 4 tests
A check of browser resources used by Themereps Helper
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲116 | 13.68 ▼0.70 | 2.10 ▲0.27 | 33.38 ▼6.18 |
Dashboard /wp-admin | 2,241 ▲50 | 4.89 ▲0.01 | 115.40 ▲11.09 | 46.46 ▼3.96 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 2.00 ▲0.02 | 40.74 ▼1.34 | 37.67 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,534 ▲13 | 21.86 ▼1.58 | 703.82 ▲57.73 | 52.35 ▲0.74 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.27 ▲0.04 | 104.64 ▲3.64 | 52.87 ▲4.91 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 1,080 | 1.69 | 24.95 | 29.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin did not uninstall successfully, leaving 10 options in the database
- fs_gdpr
- fs_debug_mode
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- fs_accounts
- fs_active_plugins
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/themereps-helper/inc/customizer.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function th_fs() in wp-content/plugins/themereps-helper/inc/widgets/contact-info.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function th_fs() in wp-content/plugins/themereps-helper/inc/menu/themereps-megamenu.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function th_fs() in wp-content/plugins/themereps-helper/inc/functions.php:119
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/themereps-helper/inc/menu/megamenu_walker.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/themereps-helper/inc/dashboard/dashboard.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function th_fs() in wp-content/plugins/themereps-helper/inc/widgets/about-info.php:8
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/themereps-helper/inc/menu/megamenu_edit_walker.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function th_fs() in wp-content/plugins/themereps-helper/inc/widgets/recent-posts.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/themereps-helper/inc/dashboard/dashboard-kunty.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function th_fs() in wp-content/plugins/themereps-helper/inc/register-posttype.php:12
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: content, themereps helper, template, demo, import...
themereps-helper/themereps-helper.php 92% from 13 tests
"Themereps Helper" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 260 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected33,261 lines of code in 155 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 134 | 7,735 | 16,719 | 32,573 |
CSS | 13 | 6 | 6 | 228 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 5 | 38 | 113 | 200 |
JSON | 1 | 0 | 0 | 27 |
SVG | 1 | 0 | 0 | 19 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 68.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 2 | 3.23% |
▷ Concrete classes | 60 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 1,213 | |
▷ Static methods | 178 | 14.67% |
▷ Public methods | 859 | 70.82% |
▷ Protected methods | 15 | 1.24% |
▷ Private methods | 339 | 27.95% |
Functions | 119 | |
▷ Named functions | 119 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 127 | |
▷ Global constants | 102 | 80.31% |
▷ Class constants | 25 | 19.69% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/themereps-helper.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |