Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.68MB] [CPU: ▼3.76ms] Passed 4 tests
An overview of server-side resources used by Arconix Portfolio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.50 | 40.99 ▼0.39 |
Dashboard /wp-admin | 3.98 ▲0.64 | 39.81 ▼9.13 |
Posts /wp-admin/edit.php | 4.22 ▲0.82 | 56.05 ▲6.91 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.80 | 89.38 ▼8.33 |
Media Library /wp-admin/upload.php | 4.06 ▲0.79 | 41.66 ▲2.81 |
Add New /wp-admin/post-new.php?post_type=portfolio | 4.52 | 59.09 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 4.10 | 46.03 |
Features /wp-admin/edit-tags.php?taxonomy=feature&post_type=portfolio | 4.05 | 37.49 |
Server storage [IO: ▲4.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 473 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Arconix Portfolio
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲138 | 14.44 ▲0.09 | 1.68 ▼0.03 | 42.86 ▼2.57 |
Dashboard /wp-admin | 2,288 ▲108 | 5.66 ▲0.05 | 84.52 ▼4.74 | 77.46 ▲35.66 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.05 ▲0.10 | 37.74 ▲2.28 | 31.94 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.22 ▲0.40 | 671.52 ▼22.71 | 56.50 ▼6.56 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.29 ▲0.18 | 101.21 ▼5.03 | 44.90 ▼1.11 |
Add New /wp-admin/post-new.php?post_type=portfolio | 2,388 | 7.88 | 178.06 | 65.40 |
Portfolio /wp-admin/edit.php?post_type=portfolio | 1,140 | 1.97 | 35.30 | 31.45 |
Features /wp-admin/edit-tags.php?taxonomy=feature&post_type=portfolio | 1,292 | 2.30 | 27.22 | 25.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/arconix-portfolio/includes/metabox/tests/phpunit/includes/bootstrap.php
- > /wp-content/plugins/arconix-portfolio/includes/metabox/apigen/hook-docs.php
- 59× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/arconix-portfolio/includes/metabox/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/arconix-portfolio/includes/metabox/includes/CMB2_hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/arconix-portfolio/includes/metabox/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/arconix-portfolio/includes/metabox/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/arconix-portfolio/includes/metabox/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/arconix-portfolio/includes/metabox/tests/cmb-tests-base.php:10
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/arconix-portfolio/includes/metabox/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/arconix-portfolio/includes/metabox/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/arconix-portfolio/includes/metabox/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/arconix-portfolio/includes/metabox/includes/types/CMB2_Type_Radio.php:13
- > PHP Fatal error
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 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
4 plugin tags: portfolio, arconix, portfolio gallery, quicksand
arconix-portfolio/plugin.php 92% from 13 tests
This is the main PHP file of "Arconix Portfolio" version 1.6.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("arconix-portfolio.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected68,258 lines of code in 287 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 84 | 3,612 | 7,898 | 13,256 |
CSS | 18 | 426 | 1,233 | 5,585 |
JavaScript | 24 | 909 | 1,393 | 5,485 |
XML | 3 | 0 | 1 | 4,515 |
JSON | 5 | 0 | 0 | 4,368 |
Sass | 17 | 305 | 25 | 1,408 |
Markdown | 8 | 285 | 0 | 885 |
Bourne Shell | 4 | 67 | 45 | 209 |
YAML | 2 | 11 | 6 | 190 |
diff | 2 | 1 | 68 | 34 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 18.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 185.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 99 | |
▷ Abstract classes | 12 | 12.12% |
▷ Concrete classes | 87 | 87.88% |
▷ Final classes | 0 | 0.00% |
Methods | 1,006 | |
▷ Static methods | 131 | 13.02% |
▷ Public methods | 862 | 85.69% |
▷ Protected methods | 137 | 13.62% |
▷ Private methods | 7 | 0.70% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 7 | 53.85% |
▷ Class constants | 6 | 46.15% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
29 PNG files occupy 0.35MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 100.14KB | 29.56KB | ▼ 70.48% |
includes/metabox/apigen/theme-bootstrap/src/resources/inherit.png | 0.15KB | 0.10KB | ▼ 29.61% |
includes/metabox/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
includes/metabox/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
includes/metabox/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |