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.05MB] [CPU: ▼0.01ms] Passed 4 tests
This is a short check of server-side resources used by Junkie Portfolio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.32 ▼0.77 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.46 ▲1.74 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 40.89 ▼4.65 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.52 ▲3.77 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.91 ▲3.62 |
Types /wp-admin/edit-tags.php?taxonomy=portfolio-type&post_type=portfolio | 3.36 | 40.31 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3.44 | 48.27 |
Projects /wp-admin/edit.php?post_type=portfolio | 3.34 | 40.34 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Junkie Portfolio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲99 | 14.68 ▲0.09 | 1.78 ▲0.04 | 36.94 ▼2.08 |
Dashboard /wp-admin | 2,234 ▲45 | 6.02 ▲0.09 | 98.80 ▼3.84 | 39.57 ▼6.08 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 1.98 ▼0.05 | 36.46 ▼0.56 | 32.22 ▼3.30 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 17.68 ▼5.46 | 631.09 ▼27.34 | 39.72 ▼11.21 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.20 ▲0.00 | 101.53 ▲5.95 | 43.67 ▲2.66 |
Types /wp-admin/edit-tags.php?taxonomy=portfolio-type&post_type=portfolio | 1,290 | 2.14 | 26.35 | 27.34 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2,764 | 7.96 | 190.01 | 67.24 |
Projects /wp-admin/edit.php?post_type=portfolio | 1,335 | 3.30 | 46.95 | 32.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-portfolio-content/inc/functions.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-portfolio-content/admin/admin.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-portfolio-content/inc/taxonomy.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/theme-junkie-portfolio-content/inc/messages.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-portfolio-content/admin/metabox.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/theme-junkie-portfolio-content/inc/post-type.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Portfolio screen), #2 (Meta boxes)
theme-junkie-portfolio-content/tj-portfolio-content.php 92% from 13 tests
The principal PHP file in "Junkie Portfolio" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("theme-junkie-portfolio-content.php" instead of "tj-portfolio-content.php")
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
There were no executable files found in this plugin433 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 120 | 259 | 302 |
JavaScript | 1 | 30 | 17 | 74 |
CSS | 1 | 9 | 0 | 57 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 10.04KB | 10.09KB | 0.00% |
screenshot-1.png | 21.27KB | 20.64KB | ▼ 2.94% |