Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼143.42ms] Passed 4 tests
This is a short check of server-side resources used by Portfolio CPT
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 35.39 ▲11.26 |
Dashboard /wp-admin | 3.14 ▲0.08 | 49.53 ▲3.73 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 50.72 ▲5.40 |
Add New Post /wp-admin/post-new.php | 5.49 ▲0.06 | 88.20 ▼582.79 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 33.16 ▼0.03 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3.19 | 46.78 |
All Items /wp-admin/edit.php?post_type=portfolio | 3.13 | 33.85 |
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio | 3.08 | 28.84 |
Server storage [IO: ▲0.02MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Portfolio CPT
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,725 ▲153 | 15.99 ▲0.35 | 11.92 ▲1.91 | 46.64 ▼7.30 |
Dashboard /wp-admin | 3,007 ▲76 | 5.92 ▼0.23 | 145.60 ▼7.48 | 108.30 ▼0.89 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.72 ▲0.01 | 65.88 ▼8.87 | 92.01 ▲4.18 |
Add New Post /wp-admin/post-new.php | 1,709 ▲26 | 18.75 ▲0.33 | 405.94 ▼12.12 | 111.62 ▲2.82 |
Media Library /wp-admin/upload.php | 1,847 ▲40 | 5.02 ▼0.01 | 143.98 ▼5.46 | 109.16 ▼7.12 |
Add New /wp-admin/post-new.php?post_type=portfolio | 3,116 | 9.13 | 235.02 | 146.64 |
All Items /wp-admin/edit.php?post_type=portfolio | 1,470 | 2.64 | 61.02 | 71.87 |
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio | 1,751 | 2.40 | 59.30 | 81.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/portfolio-cpt/portfolio-cpt.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-cpt/includes/register-taxonomy.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/portfolio-cpt/includes/class-portfolio-cpt-permalink.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-cpt/includes/register-cpt.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/portfolio-cpt/includes/register-shortcode.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Knowledge Base permalink setting), #2 (Articles Widget)
portfolio-cpt/portfolio-cpt.php 92% from 13 tests
The principal PHP file in "Portfolio CPT" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
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
Success! There were no dangerous files found in this plugin326 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 67 | 103 | 198 |
CSS | 1 | 26 | 15 | 128 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
There were not PNG files found in your plugin