Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.33MB] [CPU: ▼3.59ms] Passed 4 tests
An overview of server-side resources used by Portfolio Media
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 42.14 ▼4.15 |
Dashboard /wp-admin | 3.69 ▲0.34 | 48.97 ▼15.56 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 56.31 ▲1.79 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.32 | 98.37 ▲3.55 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 38.91 ▲4.75 |
Single Page Settings /wp-admin/admin.php?page=portfolio-media-single | 3.51 | 39.41 |
Grid Settings /wp-admin/admin.php?page=portfolio-media-grid | 3.51 | 35.47 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio_media | 3.54 | 36.20 |
Portfolio /wp-admin/edit.php?post_type=portfolio_media | 3.65 | 41.03 |
Media Settings /wp-admin/admin.php?page=portfolio-media-media | 3.51 | 36.21 |
Portfolio Media /wp-admin/admin.php?page=portfolio-media | 3.51 | 37.07 |
Add New /wp-admin/post-new.php?post_type=portfolio_media | 3.76 | 55.39 |
General Settings /wp-admin/admin.php?page=portfolio-media-general | 3.51 | 41.82 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 12 new options
New WordPress options |
---|
pm_single_display |
widget_recent-posts |
pm_media_image |
pm_grid_display |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
pm_single_layout |
pm_general_basic |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Portfolio Media
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,982 ▲236 | 13.92 ▼0.88 | 6.00 ▲4.22 | 42.61 ▼1.56 |
Dashboard /wp-admin | 2,288 ▲103 | 5.26 ▼0.64 | 108.29 ▼4.65 | 41.56 ▲1.14 |
Posts /wp-admin/edit.php | 2,174 ▲85 | 2.39 ▲0.38 | 37.83 ▼1.42 | 34.24 ▼2.29 |
Add New Post /wp-admin/post-new.php | 1,415 ▼104 | 17.26 ▼6.05 | 512.28 ▼158.54 | 26.99 ▼25.73 |
Media Library /wp-admin/upload.php | 1,469 ▲81 | 4.54 ▲0.31 | 99.87 ▼7.79 | 42.30 ▼3.75 |
Single Page Settings /wp-admin/admin.php?page=portfolio-media-single | 895 | 1.95 | 26.94 | 34.41 |
Grid Settings /wp-admin/admin.php?page=portfolio-media-grid | 1,126 | 2.09 | 27.94 | 29.97 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio_media | 1,341 | 1.99 | 27.29 | 29.37 |
Portfolio /wp-admin/edit.php?post_type=portfolio_media | 1,141 | 2.35 | 34.26 | 29.65 |
Media Settings /wp-admin/admin.php?page=portfolio-media-media | 901 | 1.96 | 25.78 | 28.85 |
Portfolio Media /wp-admin/admin.php?page=portfolio-media | 890 | 1.95 | 26.58 | 26.29 |
Add New /wp-admin/post-new.php?post_type=portfolio_media | 2,409 | 7.84 | 173.40 | 65.22 |
General Settings /wp-admin/admin.php?page=portfolio-media-general | 895 | 1.96 | 26.37 | 29.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- pm_grid_layout
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- pm_grid_display
- pm_general_basic
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/portfolio-media/uninstall.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/portfolio-media/plugin.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== portfolio-media ===
)
portfolio-media/plugin.php 92% from 13 tests
The entry point to "Portfolio Media" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("portfolio-media.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,079 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 874 | 1,078 | 2,654 |
PHP | 10 | 294 | 157 | 1,018 |
CSS | 3 | 85 | 77 | 374 |
HTML | 1 | 6 | 3 | 21 |
XML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 2 | 1.80% |
▷ Public methods | 105 | 94.59% |
▷ Protected methods | 6 | 5.41% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
scripts/video-js/video-js.png | 8.04KB | 3.82KB | ▼ 52.47% |
scripts/video-js/tubesprite.png | 7.28KB | 4.20KB | ▼ 42.31% |