Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▲0.04ms] Passed 4 tests
Analyzing server-side resources used by NT Portfolio
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 38.99 ▼1.87 |
Dashboard /wp-admin | 3.47 ▲0.16 | 47.98 ▼2.86 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 54.09 ▲3.43 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 91.27 ▲1.47 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.13 ▲3.72 |
Add New /wp-admin/post-new.php?post_type=nt_portfolio | 3.51 | 55.34 |
NT Portfolio /wp-admin/edit.php?post_type=nt_portfolio | 3.43 | 36.50 |
Help /wp-admin/edit.php?post_type=nt_portfolio&page=nt-portfolio-help | 3.36 | 30.81 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by NT Portfolio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.76 ▼0.68 | 1.65 ▼0.07 | 40.49 ▼7.70 |
Dashboard /wp-admin | 2,239 ▲51 | 5.87 ▲1.00 | 98.73 ▼12.86 | 76.88 ▲32.17 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.01 ▼0.02 | 39.67 ▲6.15 | 34.20 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,703 ▲170 | 24.41 ▲1.10 | 708.10 ▲26.45 | 52.34 ▼11.68 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.14 ▼0.07 | 92.65 ▼19.59 | 71.47 ▲24.02 |
Add New /wp-admin/post-new.php?post_type=nt_portfolio | 2,926 | 7.59 | 209.80 | 152.24 |
NT Portfolio /wp-admin/edit.php?post_type=nt_portfolio | 1,088 | 1.97 | 31.28 | 31.46 |
Help /wp-admin/edit.php?post_type=nt_portfolio&page=nt-portfolio-help | 892 | 2.01 | 24.24 | 28.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nt-portfolio/core/portfolioCustomPost.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nt-portfolio/core/shortcodes.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nt-portfolio/core/helpPage.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/nt-portfolio/NT-portfolio.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=nt_portfolio
- > 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.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=nt_portfolio
- > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
wpColorPickerL10n.clear is deprecated since version 5.5.0! Use wp.i18n instead.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Contributors: Plugin contributors field is missing
nt-portfolio/NT-portfolio.php 92% from 13 tests
The entry point to "NT Portfolio" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nt-portfolio.php" instead of "NT-portfolio.php")
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
No dangerous file extensions were detected2,691 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 56 | 43 | 1,320 |
PHP | 6 | 223 | 37 | 712 |
JavaScript | 4 | 38 | 32 | 659 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.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 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
5 PNG files occupy 1.09MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/comparison.png | 27.11KB | 10.46KB | ▼ 61.43% |
images/camera_skins.png | 23.63KB | 11.65KB | ▼ 50.70% |
images/singlehelp.png | 606.22KB | 210.52KB | ▼ 65.27% |
images/tilehelp.png | 459.07KB | 142.00KB | ▼ 69.07% |
images/plugin.png | 0.99KB | 1.09KB | 0.00% |