Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.90ms] Passed 4 tests
A check of server-side resources used by Shift8 Portfolio
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.15 ▼7.64 |
Dashboard /wp-admin | 3.40 ▲0.05 | 51.77 ▼13.45 |
Posts /wp-admin/edit.php | 3.52 ▲0.15 | 49.80 ▲3.97 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.14 ▼6.46 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.46 ▲4.33 |
Shift8 Portfolios /wp-admin/edit.php?post_type=shift8_portfolio | 3.37 | 37.38 |
Add New /wp-admin/post-new.php?post_type=shift8_portfolio | 3.41 | 54.69 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Shift8 Portfolio
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲220 | 14.52 ▼0.02 | 2.54 ▲0.82 | 42.80 ▼0.61 |
Dashboard /wp-admin | 2,372 ▲195 | 6.24 ▲0.71 | 104.24 ▼1.29 | 35.92 ▼5.48 |
Posts /wp-admin/edit.php | 2,313 ▲213 | 3.57 ▲1.57 | 49.87 ▲14.05 | 31.28 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,562 ▲34 | 23.20 ▼0.04 | 640.20 ▼20.96 | 36.29 ▼21.73 |
Media Library /wp-admin/upload.php | 1,450 ▲47 | 4.20 ▲0.01 | 94.71 ▼3.11 | 50.68 ▲3.91 |
Shift8 Portfolios /wp-admin/edit.php?post_type=shift8_portfolio | 1,277 | 3.46 | 43.67 | 26.99 |
Add New /wp-admin/post-new.php?post_type=shift8_portfolio | 2,258 | 7.83 | 160.90 | 59.46 |
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
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | 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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shift8-portfolio/components/enqueuing.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/shift8-portfolio/template/single-portfolio.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/shift8-portfolio/shift8-portfolio.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/shift8-portfolio/components/custompost.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shift8-portfolio/components/metabox.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Contributors: There were no tags found
- Contributors: Plugin contributors field is missing
shift8-portfolio/shift8-portfolio.php 92% from 13 tests
"Shift8 Portfolio" version 1.12'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: Keep the plugin description shorter than 140 characters (currently 272 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,479 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 70 | 101 | 1,058 |
JavaScript | 5 | 118 | 164 | 709 |
JSON | 1 | 0 | 0 | 392 |
PHP | 5 | 38 | 45 | 319 |
C# | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 9 | |
▷ Named functions | 9 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin