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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.05ms] Passed 4 tests
Server-side resources used by Premium Portfolio Features for Phlox theme
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.10 ▼2.01 |
Dashboard /wp-admin | 3.36 ▲0.01 | 44.58 ▼14.90 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 47.56 ▼0.47 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.92 ▲3.08 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.54 ▲1.19 |
Server storage [IO: ▲2.75MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 78 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Premium Portfolio Features for Phlox theme
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲54 | 14.25 ▼0.51 | 1.64 ▼0.49 | 42.37 ▼9.89 |
Dashboard /wp-admin | 2,195 ▲14 | 5.64 ▼0.03 | 92.13 ▼24.75 | 36.89 ▼5.05 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.97 ▼0.18 | 43.88 ▲5.77 | 36.78 ▲3.34 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.20 ▲0.11 | 686.14 ▲41.49 | 46.59 ▼5.46 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.03 | 104.40 ▲8.75 | 43.72 ▲3.27 |
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-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/auxin-portfolio/auxin-portfolio.php
- > /wp-content/plugins/auxin-portfolio/uninstall.php
- > /wp-content/plugins/auxin-portfolio/public/includes/index.php
- 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant AUXPFO_INC_DIR - assumed 'AUXPFO_INC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/auxin-portfolio/public/class-auxpfo.php on line 111
- > PHP Warning
include_once(): Failed opening 'AUXPFO_INC_DIR/index.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/auxin-portfolio/public/class-auxpfo.php on line 111
- > PHP Fatal error
Uncaught Error: Call to undefined function auxpfo_get_portfolio_config() in wp-content/plugins/auxin-portfolio/public/templates/theme-parts/entry/single-portfolio.php:4
- > PHP Warning
include_once(AUXPFO_INC_DIR/index.php): failed to open stream: No such file or directory in wp-content/plugins/auxin-portfolio/public/class-auxpfo.php on line 111
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auxin-portfolio/public/includes/class-auxpfo-frontend-assets.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function auxin_get_option() in wp-content/plugins/auxin-portfolio/public/templates/theme-parts/entry/portfolio.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/auxin-portfolio/public/templates/archive-portfolio.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/auxin-portfolio/public/templates/theme-parts/loop-portfolio.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function auxpfo_get_portfolio_config() in wp-content/plugins/auxin-portfolio/public/templates/theme-parts/entry/portfolio-land.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auxin-portfolio/admin/includes/admin-ajax.php:46
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
auxin-portfolio/auxin-portfolio.php Passed 13 tests
The main PHP script in "Premium Portfolio Features for Phlox theme" version 2.3.2 is automatically included on every request by WordPress
49 characters long description:
Showcase your projects beautifully in Phlox theme
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected14,187 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 1,687 | 1,628 | 12,434 |
PO File | 1 | 598 | 1,356 | 1,318 |
JavaScript | 4 | 62 | 11 | 403 |
XML | 1 | 0 | 0 | 32 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 10.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 105 | |
▷ Static methods | 11 | 10.48% |
▷ Public methods | 85 | 80.95% |
▷ Protected methods | 12 | 11.43% |
▷ Private methods | 8 | 7.62% |
Functions | 90 | |
▷ Named functions | 29 | 32.22% |
▷ Anonymous functions | 61 | 67.78% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/ClassicLightbox.png | 41.51KB | 20.07KB | ▼ 51.64% |