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.17MB] [CPU: ▲0.34ms] Passed 4 tests
An overview of server-side resources used by ThemeFarmer Companion
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 41.27 ▲1.19 |
Dashboard /wp-admin | 3.47 ▲0.16 | 47.96 ▼1.21 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 52.74 ▲8.13 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 85.23 ▼4.51 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.72 ▲5.87 |
Server storage [IO: ▲10.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 114 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for ThemeFarmer Companion
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,400 ▲1,665 | 13.75 ▼0.83 | 5.83 ▲3.86 | 43.60 ▼0.32 |
Dashboard /wp-admin | 3,697 ▲1,509 | 4.91 ▲0.05 | 108.54 ▼7.65 | 36.66 ▼8.93 |
Posts /wp-admin/edit.php | 3,580 ▲1,491 | 2.04 ▲0.08 | 35.02 ▼4.35 | 29.44 ▼6.09 |
Add New Post /wp-admin/post-new.php | 3,005 ▲1,491 | 17.39 ▼0.17 | 674.61 ▼8.70 | 54.25 ▲3.41 |
Media Library /wp-admin/upload.php | 2,879 ▲1,497 | 4.12 ▼0.05 | 94.51 ▼3.86 | 41.94 ▼0.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/themefarmer-companion/fields/repeater/inc/icons.php
- > /wp-content/plugins/themefarmer-companion/fields/icon/inc/icons.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themefarmer-companion/theme-files/storez-functions.php:242
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themefarmer-companion/inc/companion-customizer.php:648
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themefarmer-companion/inc/functions.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themefarmer-companion/inc/home-sections.php:218
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/themefarmer-companion/theme-files/amazica-customizer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themefarmer-companion/theme-files/scope-customizer.php:156
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themefarmer-companion/inc/class-themefarmer-menu-icon-walker.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themefarmer-companion/theme-files/newstore-functions.php:179
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: slider, team, themefarmer, testimonial, themefarmer companion
themefarmer-companion/themefarmer-companion.php Passed 13 tests
"ThemeFarmer Companion" version 1.3.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
117 characters long description:
Advance Extension For Theme from ThemeFarmer. enjoy full functionality of compatible theme by installing this plugin.
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 plugin59,954 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 135 | 204 | 46,225 |
JavaScript | 17 | 1,333 | 479 | 5,603 |
PHP | 28 | 535 | 404 | 4,100 |
CSS | 18 | 171 | 37 | 3,341 |
SVG | 1 | 0 | 0 | 685 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 3 | 5.17% |
▷ Public methods | 46 | 79.31% |
▷ Protected methods | 8 | 13.79% |
▷ Private methods | 4 | 6.90% |
Functions | 63 | |
▷ Named functions | 58 | 92.06% |
▷ Anonymous functions | 5 | 7.94% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 1.30MB with 0.77MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
theme-files/demos/storez/images/logo.png | 1.75KB | 1.42KB | ▼ 19.32% |
theme-files/demos/newstore/newstore-demo-2.png | 616.73KB | 174.28KB | ▼ 71.74% |
theme-files/demos/newstore/newstore-demo-1.png | 712.60KB | 195.98KB | ▼ 72.50% |
theme-files/demos/storez/images/logo1.png | 5.00KB | 1.42KB | ▼ 71.73% |