Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/portfolio-manager-lite/classes/otw_pm_image_crop.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; OTWPMImageCropLite has a deprecated constructor
Server metrics [RAM: ▼1.20MB] [CPU: ▼47.69ms] Passed 4 tests
A check of server-side resources used by Portfolio Manager Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.68 | 9.42 ▼33.90 |
Dashboard /wp-admin | 2.81 ▼0.50 | 12.65 ▼39.71 |
Posts /wp-admin/edit.php | 2.81 ▼0.55 | 13.00 ▼42.27 |
Add New Post /wp-admin/post-new.php | 2.81 ▼3.08 | 16.32 ▼74.89 |
Media Library /wp-admin/upload.php | 2.81 ▼0.42 | 12.53 ▼20.49 |
Options /wp-admin/edit.php?post_type=otw_pm_portfolio&page=otw-pml-settings | 2.81 | 12.55 |
Add New List /wp-admin/edit.php?post_type=otw_pm_portfolio&page=otw-pml-add | 2.81 | 14.42 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=otw_pm_portfolio_tag&post_type=otw_pm_portfolio | 2.81 | 13.58 |
License Manager /wp-admin/edit.php?post_type=otw_pm_portfolio&page=otw-pml-lm | 2.81 | 12.85 |
otwfcr /wp-admin/admin.php?page=otwfcr | 2.81 | 13.16 |
Portfolio Items /wp-admin/edit.php?post_type=otw_pm_portfolio | 2.81 | 12.33 |
Duplicated List /wp-admin/admin.php?page=otw-pml-copy | 2.81 | 13.28 |
Add New Item /wp-admin/post-new.php?post_type=otw_pm_portfolio | 2.81 | 11.03 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=otw_pm_portfolio_category&post_type=otw_pm_portfolio | 2.81 | 14.40 |
Portfolio Lists /wp-admin/edit.php?post_type=otw_pm_portfolio&page=otw-pml | 2.81 | 12.59 |
Server storage [IO: ▲6.12MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 307 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
otw_pm_portfolio_details |
widget_theysaidso_widget |
widget_otw_pm_widget_items |
can_compress_scripts |
otw_pml_rewrite_rules |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Portfolio Manager Lite
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,093 ▲322 | 15.24 ▲0.93 | 34.72 ▲32.68 | 36.58 ▼8.92 |
Dashboard /wp-admin | 2,257 ▲72 | 5.08 ▼0.78 | 100.48 ▼1.97 | 73.14 ▲33.53 |
Posts /wp-admin/edit.php | 2,164 ▲75 | 2.36 ▲0.36 | 39.92 ▲3.46 | 35.30 ▼0.48 |
Add New Post /wp-admin/post-new.php | 6,407 ▲4,887 | 28.37 ▲5.29 | 879.97 ▲214.89 | 39.69 ▼15.79 |
Media Library /wp-admin/upload.php | 1,457 ▲66 | 4.48 ▲0.30 | 109.38 ▲3.94 | 47.61 ▲3.57 |
Options /wp-admin/edit.php?post_type=otw_pm_portfolio&page=otw-pml-settings | 1,251 | 2.60 | 35.55 | 43.40 |
Add New List /wp-admin/edit.php?post_type=otw_pm_portfolio&page=otw-pml-add | 1,877 | 3.11 | 60.00 | 38.66 |
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=otw_pm_portfolio_tag&post_type=otw_pm_portfolio | 1,308 | 2.05 | 29.33 | 31.72 |
License Manager /wp-admin/edit.php?post_type=otw_pm_portfolio&page=otw-pml-lm | 984 | 1.89 | 26.74 | 26.84 |
otwfcr /wp-admin/admin.php?page=otwfcr | 836 | 1.88 | 27.16 | 19.94 |
Portfolio Items /wp-admin/edit.php?post_type=otw_pm_portfolio | 1,201 | 2.57 | 34.91 | 30.91 |
Duplicated List /wp-admin/admin.php?page=otw-pml-copy | 833 | 1.88 | 27.26 | 19.88 |
Add New Item /wp-admin/post-new.php?post_type=otw_pm_portfolio | 2,886 | 7.91 | 185.73 | 154.53 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=otw_pm_portfolio_category&post_type=otw_pm_portfolio | 1,339 | 1.94 | 30.88 | 28.41 |
Portfolio Lists /wp-admin/edit.php?post_type=otw_pm_portfolio&page=otw-pml | 929 | 2.55 | 31.65 | 29.86 |
Uninstaller [IO: ▲0.14MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/portfolio-manager-lite/classes/otw_pm_image_crop.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; OTWPMImageCropLite has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 9 options
- otw_pml_rewrite_rules
- theysaidso_admin_options
- widget_otw_pm_widget_items
- db_upgraded
- widget_recent-comments
- otw_pm_portfolio_details
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 11 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=otw_pm_portfolio&page=otw-pml
- > Deprecated in wp-content/plugins/portfolio-manager-lite/classes/otw_pm_image_crop.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; OTWPMImageCropLite has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=otw_pm_portfolio&page=otw-pml-add
- > Notice in wp-content/plugins/portfolio-manager-lite/views/otw_portfolio_manager_lite_add_list.php+196
Undefined variable: nextID
- > GET request to /wp-admin/admin.php?page=otw-pml-copy
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'OTWPortfolioManagerLite' does not have a method 'pm_copy'
- > GET request to /wp-admin/post-new.php?post_type=otw_pm_portfolio
- > Notice in wp-content/plugins/portfolio-manager-lite/views/otw_portfolio_manager_lite_meta_box.php+138
Undefined variable: media_display
- > GET request to /wp-admin/post-new.php?post_type=otw_pm_portfolio
- > Notice in wp-content/plugins/portfolio-manager-lite/views/otw_portfolio_manager_lite_meta_box.php+141
Undefined variable: media_url
SRP 0% 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
Please fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/portfolio-manager-lite/skeleton/wrappers/meta.php
- > /wp-content/plugins/portfolio-manager-lite/include/otw_components/otw_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- > /wp-content/plugins/portfolio-manager-lite/include/otw_components/otw_factory/views/action_message.php
- > /wp-content/plugins/portfolio-manager-lite/skeleton/components/item_media.php
- 62× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/portfolio-manager-lite/skeleton/components/title.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/portfolio-manager-lite/skeleton/components/simple_media.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/portfolio-manager-lite/skeleton/components/item_media.php on line 2
- > PHP Notice
Trying to get property 'post_content' of non-object in wp-content/plugins/portfolio-manager-lite/skeleton/components/widget_content.php on line 5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/portfolio-manager-lite/include/content.php:118
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/portfolio-manager-lite/skeleton/components/widget_title.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/portfolio-manager-lite/include/otw_components/otw_factory/views/license_manager.php:3
- > PHP Notice
Undefined variable: return_url in wp-content/plugins/portfolio-manager-lite/include/otw_components/otw_factory/views/action_message.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_post_terms() in wp-content/plugins/portfolio-manager-lite/skeleton/components/meta_tags.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/portfolio-manager-lite/include/otw_components/otw_shortcode/widgets/otw_shortcode_widget.class.php:2
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Grid - Portfolio 1 col), #2 (Grid - Portfolio 4 col), #3 (Image Left - Portfolio 1 column), #4 (Newspaper - Portfolio 3 columns), #5 (Widget Style - Image Left), #6 (Timeline), #7 (Slider), #8 (Carousel 3 columns), #9 (Portfolio Manager menu), #10 (Add new item), #11 (Portfolio items list), #12 (Portfolio categories), #13 (Portfolio tags), #14 (Add portfolio list), #15 (Portfolio lists), #16 (Portfolio options)
portfolio-manager-lite/otw_portfolio_manager_lite.php 85% from 13 tests
The main file in "Portfolio Manager Lite" v. 1.20 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("portfolio-manager-lite.php" instead of "otw_portfolio_manager_lite.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 563 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin30,834 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 34 | 1,112 | 425 | 12,579 |
PHP | 70 | 2,766 | 1,348 | 10,395 |
JavaScript | 40 | 1,131 | 601 | 4,717 |
SVG | 5 | 0 | 0 | 3,108 |
XML | 1 | 0 | 0 | 18 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 92.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 345.00 |
Average method complexity | 6.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 97.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 | 276 | |
▷ Static methods | 18 | 6.52% |
▷ Public methods | 202 | 73.19% |
▷ Protected methods | 27 | 9.78% |
▷ Private methods | 47 | 17.03% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
98 PNG files occupy 1.44MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/otw_components/otw_shortcode/images-shortcodes/nivo-default/close@2x.png | 3.02KB | 0.34KB | ▼ 88.83% |
include/otw_components/otw_shortcode/images-shortcodes/patterns/dimension.png | 0.54KB | 0.57KB | 0.00% |
screenshot-12.png | 61.20KB | 22.05KB | ▼ 63.97% |
include/otw_components/otw_shortcode/images/down.png | 0.61KB | 0.62KB | 0.00% |
include/otw_components/otw_shortcode/images-shortcodes/icons/flatified/camera.png | 4.64KB | 2.68KB | ▼ 42.19% |