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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.48ms] Passed 4 tests
Server-side resources used by Genesis Portfolio Pro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.02 | 42.73 ▼3.17 |
Dashboard /wp-admin | 3.59 ▲0.03 | 50.95 ▼6.80 |
Posts /wp-admin/edit.php | 3.70 ▲0.02 | 58.57 ▲4.75 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.02 | 100.31 ▼6.41 |
Media Library /wp-admin/upload.php | 3.51 ▲0.02 | 40.47 ▼5.52 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Genesis Portfolio Pro
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.71 ▲0.34 | 1.96 ▲0.27 | 45.78 ▲3.16 |
Dashboard /wp-admin | 2,192 ▲18 | 5.53 ▼0.06 | 86.70 ▲0.09 | 42.26 ▲3.72 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.02 | 51.15 ▲12.36 | 46.23 ▲9.16 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 23.13 ▼0.14 | 611.86 ▼66.16 | 50.82 ▼7.97 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▼0.09 | 99.50 ▲1.35 | 45.87 ▲3.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/genesis-portfolio-pro/genesis-portfolio-pro.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-portfolio-pro/lib/template-loader.php:46
- > PHP Warning
Use of undefined constant GENESIS_PORTFOLIO_LIB - assumed 'GENESIS_PORTFOLIO_LIB' (this will throw an Error in a future version of PHP) in wp-content/plugins/genesis-portfolio-pro/lib/template-loader.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-portfolio-pro/lib/templates/archive-portfolio.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-portfolio-pro/lib/templates/taxonomy-portfolio-type.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/genesis-portfolio-pro/lib/classes/class-genesis-portfolio-widget.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function register_taxonomy() in wp-content/plugins/genesis-portfolio-pro/lib/post-types-and-taxonomies.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/genesis-portfolio-pro/plugin.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/genesis-portfolio-pro/lib/templates/single-portfolio.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/genesis-portfolio-pro/lib/views/admin/archive-settings/posts-per-page-meta.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: portfolio, templates, genesis
genesis-portfolio-pro/plugin.php 92% from 13 tests
This is the main PHP file of "Genesis Portfolio Pro" version 1.2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("genesis-portfolio-pro.php" instead of "plugin.php")
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
No dangerous file extensions were detected807 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 171 | 407 | 705 |
CSS | 2 | 19 | 0 | 98 |
Markdown | 1 | 3 | 0 | 4 |
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.21 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG images were found in this plugin