Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▲0.65ms] Passed 4 tests
A check of server-side resources used by Perfectwpthemes Toolkit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 42.34 ▲2.18 |
Dashboard /wp-admin | 3.57 ▲0.27 | 48.13 ▲0.68 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 49.91 ▲1.96 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 90.25 ▼2.20 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 36.71 ▲3.35 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 95 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Perfectwpthemes Toolkit
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲116 | 13.68 ▼0.88 | 5.41 ▲3.45 | 41.00 ▼2.19 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲0.93 | 100.77 ▼5.05 | 38.88 ▼3.74 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.00 | 36.52 ▼5.06 | 38.14 ▲1.94 |
Add New Post /wp-admin/post-new.php | 1,518 ▲4 | 17.49 ▼0.15 | 664.94 ▼57.71 | 53.84 ▲1.37 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.22 ▼0.05 | 93.71 ▼0.52 | 41.20 ▼2.09 |
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
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/perfectwpthemes-toolkit/public/partials/perfectwpthemes-toolkit-public-display.php
- > /wp-content/plugins/perfectwpthemes-toolkit/admin/partials/perfectwpthemes-toolkit-admin-display.php
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/perfectwpthemes-toolkit/includes/themes/glaze-blog/widgets/instagram-widget.php:10
- > PHP Fatal error
Uncaught Error: Class 'PWPT_Importer_Logger' not found in wp-content/plugins/perfectwpthemes-toolkit/includes/demo-importer/importer/class-pwpt-importer-logger-cli.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/perfectwpthemes-toolkit/includes/themes/masonry-blog-pro/info.php:93
- > PHP Fatal error
require(): Failed opening required 'PWPT_ABSPATHincludes/demo-importer/importer/class-pwpt-importer-logger.php' (include_path='.:/usr/share/php') in wp-content/plugins/perfectwpthemes-toolkit/includes/demo-importer/class-pwpt-logger.php on line 9
- > PHP Warning
require(PWPT_ABSPATHincludes/demo-importer/importer/class-pwpt-importer-logger.php): failed to open stream: No such file or directory in wp-content/plugins/perfectwpthemes-toolkit/includes/demo-importer/class-pwpt-logger.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/perfectwpthemes-toolkit/includes/customizer/controls/class-customizer-toggle-control.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/perfectwpthemes-toolkit/includes/themes/glaze-blog-lite/customizer/functions/dynamic-style.php:100
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/perfectwpthemes-toolkit/includes/themes/glaze-blog/info.php:90
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/perfectwpthemes-toolkit/includes/customizer/controls/class-customizer-radio-image-control.php:8
- > PHP Fatal error
Uncaught Error: Class 'PWPT_Importer_WXR_Importer' not found in wp-content/plugins/perfectwpthemes-toolkit/includes/demo-importer/class-pwpt-wxr-importer.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: import, demo, content, data, perfectwpthemes...
perfectwpthemes-toolkit/perfectwpthemes-toolkit.php Passed 13 tests
This is the main PHP file of "Perfectwpthemes Toolkit" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
56 characters long description:
An essential toolkit for themes made by perfectwpthemes.
Code Analysis Passed 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 detected8,988 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 2,146 | 2,718 | 6,478 |
JavaScript | 8 | 194 | 154 | 1,539 |
CSS | 6 | 235 | 55 | 971 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 18.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 262.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 1 | 2.44% |
▷ Concrete classes | 40 | 97.56% |
▷ Final classes | 2 | 5.00% |
Methods | 243 | |
▷ Static methods | 42 | 17.28% |
▷ Public methods | 169 | 69.55% |
▷ Protected methods | 34 | 13.99% |
▷ Private methods | 40 | 16.46% |
Functions | 65 | |
▷ Named functions | 64 | 98.46% |
▷ Anonymous functions | 1 | 1.54% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/customizer/assets/imgs/color-picker-transparency-grid.png | 2.58KB | 2.80KB | 0.00% |
includes/customizer/assets/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
includes/customizer/assets/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
includes/theme-info/images/perfectwpthemes.png | 11.03KB | 6.60KB | ▼ 40.15% |