Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.81MB] [CPU: ▲0.94ms] Passed 4 tests
Server-side resources used by Smartlib Tools
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.20 ▲0.74 | 46.31 ▲3.22 |
Dashboard /wp-admin | 4.20 ▲0.85 | 64.34 ▼3.71 |
Posts /wp-admin/edit.php | 4.25 ▲0.89 | 61.42 ▲13.77 |
Add New Post /wp-admin/post-new.php | 6.73 ▲0.84 | 98.33 ▲0.18 |
Media Library /wp-admin/upload.php | 4.02 ▲0.79 | 47.10 ▲4.08 |
Add New /wp-admin/post-new.php?post_type=smartlib_faq | 4.22 | 57.16 |
Add New /wp-admin/post-new.php?post_type=smartlib_portfolio | 4.26 | 70.16 |
Team Members /wp-admin/edit.php?post_type=smartlib_team | 4.10 | 55.32 |
Add New /wp-admin/post-new.php?post_type=smartlib_team | 4.22 | 65.00 |
Testimonials /wp-admin/edit.php?post_type=smartlib_testimonial | 4.10 | 52.66 |
Add New /wp-admin/post-new.php?post_type=smartlib_testimonial | 4.24 | 65.92 |
Skills /wp-admin/edit-tags.php?taxonomy=portfolio_skills&post_type=smartlib_portfolio | 4.04 | 52.55 |
Portfolio items /wp-admin/edit.php?post_type=smartlib_portfolio | 4.10 | 54.07 |
FAQ /wp-admin/edit.php?post_type=smartlib_faq | 4.10 | 47.45 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=smartlib_portfolio | 4.04 | 51.29 |
Server storage [IO: ▲2.15MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 345 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Smartlib Tools
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,284 ▲538 | 15.57 ▲1.27 | 5.51 ▲3.62 | 43.83 ▲4.32 |
Dashboard /wp-admin | 2,591 ▲385 | 6.79 ▲0.89 | 131.46 ▲21.07 | 46.13 ▲8.77 |
Posts /wp-admin/edit.php | 2,418 ▲315 | 3.45 ▲1.43 | 51.25 ▲8.52 | 34.77 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,588 ▲48 | 16.81 ▼6.42 | 565.88 ▼141.74 | 26.96 ▼25.60 |
Media Library /wp-admin/upload.php | 1,555 ▲158 | 4.05 ▼0.15 | 96.43 ▼14.09 | 49.25 ▲0.73 |
Add New /wp-admin/post-new.php?post_type=smartlib_faq | 2,351 | 7.97 | 172.94 | 64.66 |
Add New /wp-admin/post-new.php?post_type=smartlib_portfolio | 2,654 | 8.43 | 228.82 | 66.10 |
Team Members /wp-admin/edit.php?post_type=smartlib_team | 1,385 | 3.35 | 48.58 | 27.79 |
Add New /wp-admin/post-new.php?post_type=smartlib_team | 2,388 | 7.88 | 187.07 | 58.71 |
Testimonials /wp-admin/edit.php?post_type=smartlib_testimonial | 1,379 | 3.34 | 58.72 | 34.78 |
Add New /wp-admin/post-new.php?post_type=smartlib_testimonial | 2,457 | 7.91 | 176.55 | 59.59 |
Skills /wp-admin/edit-tags.php?taxonomy=portfolio_skills&post_type=smartlib_portfolio | 1,564 | 3.29 | 52.40 | 36.80 |
Portfolio items /wp-admin/edit.php?post_type=smartlib_portfolio | 1,388 | 3.43 | 52.15 | 32.37 |
FAQ /wp-admin/edit.php?post_type=smartlib_faq | 1,386 | 3.44 | 44.02 | 26.75 |
Portfolio Category /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=smartlib_portfolio | 1,589 | 3.26 | 51.97 | 36.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 7× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/smartlib-tools/vendor/shortcode-ui/inc/templates/media-frame.tpl.php
- > /wp-content/plugins/smartlib-tools/vendor/shortcode-ui/inc/templates/list-item.tpl.php
- > /wp-content/plugins/smartlib-tools/vendor/meta-box/inc/templates/media.php
- > /wp-content/plugins/smartlib-tools/vendor/meta-box/inc/templates/upload.php
- > /wp-content/plugins/smartlib-tools/vendor/meta-box/inc/templates/video.php
- > /wp-content/plugins/smartlib-tools/vendor/meta-box/inc/templates/image-advanced.php
- > /wp-content/plugins/smartlib-tools/vendor/meta-box/inc/templates/audio.php
- 79× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'RWMB_File_Field' not found in wp-content/plugins/smartlib-tools/vendor/meta-box/inc/fields/media.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Object_Choice_Field' not found in wp-content/plugins/smartlib-tools/vendor/meta-box/inc/fields/user.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smartlib-tools/includes/shortcodes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smartlib-tools/vendor/bootstrap-for-contact-form-7/modules/submit.php:10
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Taxonomy_Field' not found in wp-content/plugins/smartlib-tools/vendor/meta-box/inc/fields/taxonomy-advanced.php:11
- > PHP Fatal error
Uncaught Error: Class 'CF7BS_Component' not found in wp-content/plugins/smartlib-tools/vendor/bootstrap-for-contact-form-7/classes/CF7BS_Form_Field.php:10
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Object_Choice_Field' not found in wp-content/plugins/smartlib-tools/vendor/meta-box/inc/fields/post.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/smartlib-tools/vendor/meta-box/inc/fields/datetime.php:11
- > PHP Fatal error
Uncaught Error: Class 'CF7BS_Component' not found in wp-content/plugins/smartlib-tools/vendor/bootstrap-for-contact-form-7/classes/CF7BS_Alert.php:10
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/smartlib-tools/vendor/meta-box/inc/fields/checkbox.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=smartlib_portfolio
- > Javascript (severe) in unknown
/wp-content/plugins/smartlib-tools//assets/js/plugin-scripts.js?ver=1.0 4:42 Uncaught TypeError: jQuery(...).live is not a function
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
6 plugin tags: team member, portfolio, faq, social buttons, post types...
smartlib-tools/smartlib-tools.php Passed 13 tests
The entry point to "Smartlib Tools" version 1.0.7 is a PHP file that has certain tags in its header comment area
92 characters long description:
Some extra features to your theme: Portfolio, Testimonials, FAQ and Team Members Post Types.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin23,240 lines of code in 286 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 114 | 1,958 | 1,432 | 7,198 |
PHP | 112 | 1,595 | 3,376 | 7,081 |
CSS | 36 | 741 | 141 | 6,429 |
PO File | 16 | 653 | 740 | 1,754 |
SVG | 1 | 0 | 0 | 504 |
Sass | 3 | 44 | 0 | 197 |
JSON | 2 | 1 | 0 | 58 |
Markdown | 2 | 15 | 0 | 19 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 138)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 8.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 138.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 78 | |
▷ Abstract classes | 8 | 10.26% |
▷ Concrete classes | 70 | 89.74% |
▷ Final classes | 0 | 0.00% |
Methods | 383 | |
▷ Static methods | 242 | 63.19% |
▷ Public methods | 340 | 88.77% |
▷ Protected methods | 27 | 7.05% |
▷ Private methods | 16 | 4.18% |
Functions | 88 | |
▷ Named functions | 86 | 97.73% |
▷ Anonymous functions | 2 | 2.27% |
Constants | 15 | |
▷ Global constants | 15 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
21 PNG files occupy 0.15MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/meta-box/img/jqueryui/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/shortcode-ui/screenshot-1.png | 29.92KB | 18.14KB | ▼ 39.38% |
vendor/shortcode-ui/screenshot-3.png | 17.79KB | 10.38KB | ▼ 41.67% |
vendor/meta-box/img/jqueryui/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/meta-box/img/jqueryui/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |