Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.68MB] [CPU: ▲2.54ms] Passed 4 tests
Server-side resources used by Amazing Portfolio
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 42.71 ▼5.03 |
Dashboard /wp-admin | 3.99 ▲0.69 | 54.08 ▲6.71 |
Posts /wp-admin/edit.php | 4.04 ▲0.68 | 53.80 ▲0.95 |
Add New Post /wp-admin/post-new.php | 6.60 ▲0.72 | 106.88 ▲7.53 |
Media Library /wp-admin/upload.php | 3.89 ▲0.66 | 46.21 ▲9.87 |
Categories /wp-admin/edit-tags.php?taxonomy=amazing-portfolio-category&post_type=amazing-portfolio | 3.91 | 41.37 |
Add New /wp-admin/post-new.php?post_type=amazing-portfolio | 4.03 | 58.44 |
All Portfolios /wp-admin/edit.php?post_type=amazing-portfolio | 3.97 | 43.53 |
Server storage [IO: ▲4.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 133 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Amazing Portfolio: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,214 ▲479 | 16.12 ▲1.76 | 13.27 ▲11.46 | 46.00 ▲1.68 |
Dashboard /wp-admin | 2,457 ▲269 | 7.10 ▲2.19 | 127.43 ▲7.68 | 39.59 ▼5.86 |
Posts /wp-admin/edit.php | 2,363 ▲274 | 3.91 ▲1.83 | 57.75 ▲20.73 | 30.98 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,636 ▲122 | 18.40 ▲0.93 | 575.10 ▼107.55 | 34.61 ▼19.15 |
Media Library /wp-admin/upload.php | 1,499 ▲111 | 4.78 ▲0.62 | 83.97 ▼13.63 | 45.18 ▲2.11 |
Categories /wp-admin/edit-tags.php?taxonomy=amazing-portfolio-category&post_type=amazing-portfolio | 1,545 | 3.69 | 50.57 | 27.69 |
Add New /wp-admin/post-new.php?post_type=amazing-portfolio | 2,883 | 7.79 | 188.19 | 71.71 |
All Portfolios /wp-admin/edit.php?post_type=amazing-portfolio | 1,378 | 3.88 | 49.90 | 28.49 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=amazing-portfolio
- > Notice in wp-content/plugins/amazing-portfolio/inc/framework/classes/metabox.class.php+70
Trying to access array offset on value of type bool
SRP 50% 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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_terms() in wp-content/plugins/amazing-portfolio/inc/related-portfolio.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/amazing-portfolio/inc/single-portfolio.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: You are using too many tags: 11 tag instead of maximum 10
amazing-portfolio/amazing-portfolio.php 92% from 13 tests
"Amazing Portfolio" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
Code Analysis Passed 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 plugin47,092 lines of code in 101 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 17,050 |
CSS | 14 | 904 | 361 | 10,831 |
JavaScript | 15 | 1,672 | 1,742 | 7,044 |
PHP | 52 | 1,655 | 1,312 | 5,303 |
SVG | 3 | 0 | 0 | 3,897 |
Sass | 6 | 341 | 0 | 2,089 |
PO File | 7 | 306 | 334 | 705 |
Markdown | 2 | 24 | 0 | 173 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 14.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 2 | 6.25% |
▷ Concrete classes | 30 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 5 | 5.00% |
▷ Public methods | 100 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 53 | |
▷ Named functions | 53 | 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 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
5 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/no-image.png | 20.85KB | 9.38KB | ▼ 55.01% |
inc/framework/assets/images/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
inc/framework/assets/images/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
inc/framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
assets/img/dotted.png | 0.10KB | 0.10KB | 0.00% |