Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▲5.51ms] Passed 4 tests
A check of server-side resources used by Awesome Portfolio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 47.84 ▲7.37 |
Dashboard /wp-admin | 3.69 ▲0.38 | 57.00 ▲8.35 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 60.56 ▲8.65 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.33 | 99.34 ▲7.53 |
Media Library /wp-admin/upload.php | 3.53 ▲0.29 | 38.69 ▼1.23 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3.78 | 58.78 |
All Portfolios /wp-admin/edit.php?post_type=portfolio | 3.65 | 49.48 |
Skills /wp-admin/edit-tags.php?taxonomy=portfolio_skill&post_type=portfolio | 3.55 | 42.87 |
Settings /wp-admin/edit.php?post_type=portfolio&page=fp-settings | 3.53 | 39.90 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio | 3.55 | 41.49 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_widget_filterable_portfolio |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Awesome Portfolio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,005 ▲244 | 14.85 ▲0.32 | 1.71 ▼0.39 | 46.32 ▼0.42 |
Dashboard /wp-admin | 2,400 ▲220 | 6.46 ▲0.81 | 126.28 ▲36.05 | 42.66 ▼0.81 |
Posts /wp-admin/edit.php | 2,335 ▲235 | 3.62 ▲1.59 | 57.59 ▲21.44 | 32.95 ▼7.20 |
Add New Post /wp-admin/post-new.php | 1,583 ▲57 | 23.00 ▼0.01 | 609.62 ▼77.79 | 34.28 ▼26.08 |
Media Library /wp-admin/upload.php | 1,471 ▲68 | 4.42 ▲0.11 | 84.40 ▼19.15 | 46.02 ▼1.24 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2,756 | 8.05 | 189.08 | 75.07 |
All Portfolios /wp-admin/edit.php?post_type=portfolio | 1,363 | 3.62 | 51.42 | 26.75 |
Skills /wp-admin/edit-tags.php?taxonomy=portfolio_skill&post_type=portfolio | 1,508 | 3.52 | 45.30 | 32.52 |
Settings /wp-admin/edit.php?post_type=portfolio&page=fp-settings | 1,402 | 3.57 | 63.71 | 39.69 |
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio | 1,505 | 3.42 | 42.92 | 36.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_widget_filterable_portfolio
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/awesome-protfolio/templates/shapla/archive-portfolio.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=portfolio&page=fp-settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
- > GET request to /wp-admin/edit.php?post_type=portfolio&page=fp-settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
- > GET request to /wp-admin/edit.php?post_type=portfolio&page=fp-settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultString is deprecated since version 5.5.0! Use wp.i18n instead.
- > GET request to /wp-admin/edit.php?post_type=portfolio&page=fp-settings
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.defaultAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== awesome-protfolio ===
) - Screenshots: Add images for these screenshots: #1 (This is the first screenshot), #2 (This is the second screenshot), #3 (This is the third screenshot)
awesome-protfolio/portfolio.php 77% from 13 tests
The main PHP script in "Awesome Portfolio" version 2.0 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-protfolio.php" instead of "portfolio.php")
- Domain Path: The domain path folder does not exist ("/languages")
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
Everything looks great! No dangerous files found in this plugin8,781 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 1,483 | 1,929 | 6,213 |
PHP | 18 | 375 | 773 | 1,995 |
Sass | 16 | 78 | 21 | 571 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 16.73 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 92 | |
▷ Static methods | 6 | 6.52% |
▷ Public methods | 84 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 8.70% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin