Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼4.59ms] Passed 4 tests
Server-side resources used by Fancy Grid Portfolio
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 38.86 ▼4.08 |
Dashboard /wp-admin | 3.86 ▲0.55 | 45.43 ▼4.94 |
Posts /wp-admin/edit.php | 3.90 ▲0.55 | 46.24 ▲1.17 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.62 | 85.99 ▼10.52 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 36.99 ▲4.52 |
Dashboard /wp-admin/admin.php?page=fancy-grid-portfolio | 3.70 | 32.44 |
Portfolio Items /wp-admin/edit.php?post_type=portfolio_item | 3.82 | 37.38 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_categories | 3.78 | 34.58 |
Drag Drop Sort /wp-admin/admin.php?page=custom-order | 3.75 | 31.43 |
Server storage [IO: ▲3.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 193 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Fancy Grid Portfolio
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,063 ▲328 | 13.61 ▼1.05 | 14.23 ▲12.24 | 48.30 ▲2.65 |
Dashboard /wp-admin | 2,240 ▲49 | 5.77 ▲0.92 | 94.10 ▼11.92 | 40.21 ▼4.38 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.11 ▲0.12 | 35.03 ▼2.15 | 32.36 ▼2.60 |
Add New Post /wp-admin/post-new.php | 6,711 ▲5,192 | 25.00 ▲1.92 | 991.92 ▲373.46 | 40.25 ▼16.57 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.21 ▼0.04 | 94.10 ▼3.31 | 43.59 ▲0.07 |
Dashboard /wp-admin/admin.php?page=fancy-grid-portfolio | 937 | 1.80 | 25.76 | 30.71 |
Portfolio Items /wp-admin/edit.php?post_type=portfolio_item | 1,088 | 2.07 | 35.13 | 27.48 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio_categories | 1,278 | 2.28 | 28.53 | 28.82 |
Drag Drop Sort /wp-admin/admin.php?page=custom-order | 830 | 1.81 | 26.38 | 25.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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 everything seems fine, this is not 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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/fancy-grid-portfolio/public/partials/fancy-grid-portfolio-public-display.php
- > /wp-content/plugins/fancy-grid-portfolio/admin/partials/fancy-grid-portfolio-admin-display.php
- 42× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/fancy-grid-portfolio/lib/advanced-custom-fields/core/fields/text.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/fancy-grid-portfolio/lib/advanced-custom-fields/core/fields/user.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-grid-portfolio/lib/advanced-custom-fields/core/controllers/field_group.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-grid-portfolio/lib/advanced-custom-fields/core/controllers/third_party.php:22
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/fancy-grid-portfolio/lib/advanced-custom-fields/core/fields/file.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/fancy-grid-portfolio/lib/advanced-custom-fields/core/fields/true_false.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/fancy-grid-portfolio/lib/advanced-custom-fields/core/fields/color_picker.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancy-grid-portfolio/lib/advanced-custom-fields/core/controllers/addons.php:26
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/fancy-grid-portfolio/lib/advanced-custom-fields/core/fields/post_object.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/fancy-grid-portfolio/lib/advanced-custom-fields/core/views/meta_box_fields.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== fancy-grid-portfolio ===
)
fancy-grid-portfolio/fancy-grid-portfolio.php Passed 13 tests
The main PHP script in "Fancy Grid Portfolio" version 2.0.2 is automatically included on every request by WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected40,189 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 23 | 9,297 | 13,653 | 20,306 |
PHP | 56 | 4,171 | 5,186 | 9,002 |
JavaScript | 22 | 4,182 | 3,072 | 7,469 |
CSS | 12 | 919 | 392 | 3,412 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 21.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 45 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 318 | |
▷ Static methods | 2 | 0.63% |
▷ Public methods | 313 | 98.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 1.57% |
Functions | 49 | |
▷ Named functions | 49 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
36 compressed PNG files occupy 0.24MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/advanced-custom-fields/core/fields/date_picker/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
lib/advanced-custom-fields/core/fields/date_picker/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/advanced-custom-fields/images/arrows.png | 0.24KB | 0.24KB | 0.00% |
lib/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
lib/advanced-custom-fields/core/fields/date_picker/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |