Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.79MB] [CPU: ▲10.68ms] Passed 4 tests
Analyzing server-side resources used by WP Feature Box
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.98 ▲1.52 | 53.55 ▲2.56 |
Dashboard /wp-admin | 5.18 ▲1.88 | 58.91 ▲9.03 |
Posts /wp-admin/edit.php | 5.24 ▲1.88 | 61.74 ▲9.86 |
Add New Post /wp-admin/post-new.php | 7.82 ▲1.93 | 113.50 ▲26.13 |
Media Library /wp-admin/upload.php | 5.12 ▲1.89 | 53.59 ▲21.27 |
Export /wp-admin/edit.php?post_type=acf&page=acf-export | 5.09 | 41.31 |
Custom Fields /wp-admin/edit.php?post_type=acf | 5.25 | 44.04 |
Add-ons /wp-admin/edit.php?post_type=acf&page=acf-addons | 5.08 | 40.77 |
Settings /wp-admin/edit.php?post_type=wp-feature-box&page=wfb-settings | 4.99 | 39.05 |
Add feature item /wp-admin/post-new.php?post_type=wp-feature-box | 5.32 | 61.10 |
Feature box /wp-admin/edit.php?post_type=wp-feature-box | 5.15 | 45.09 |
Server storage [IO: ▲2.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 162 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
acf_version |
db_upgraded |
Browser metrics Passed 4 tests
WP Feature Box: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,082 ▲336 | 14.20 ▼0.18 | 13.93 ▲12.24 | 45.59 ▲6.13 |
Dashboard /wp-admin | 2,286 ▲104 | 5.10 ▼0.77 | 112.60 ▲7.61 | 40.63 ▼0.38 |
Posts /wp-admin/edit.php | 2,171 ▲79 | 2.32 ▲0.27 | 39.90 ▼2.77 | 34.90 ▼2.37 |
Add New Post /wp-admin/post-new.php | 6,968 ▲5,449 | 26.05 ▲2.89 | 1,009.01 ▲322.94 | 42.69 ▼11.57 |
Media Library /wp-admin/upload.php | 1,471 ▲80 | 4.44 ▲0.20 | 100.12 ▼5.05 | 71.94 ▲25.94 |
Export /wp-admin/edit.php?post_type=acf&page=acf-export | 1,011 | 1.93 | 35.78 | 31.32 |
Custom Fields /wp-admin/edit.php?post_type=acf | 1,244 | 2.31 | 37.39 | 33.36 |
Add-ons /wp-admin/edit.php?post_type=acf&page=acf-addons | 1,076 | 2.11 | 30.55 | 30.15 |
Settings /wp-admin/edit.php?post_type=wp-feature-box&page=wfb-settings | 921 | 1.94 | 28.70 | 29.99 |
Add feature item /wp-admin/post-new.php?post_type=wp-feature-box | 2,846 | 8.23 | 172.16 | 53.57 |
Feature box /wp-admin/edit.php?post_type=wp-feature-box | 1,138 | 2.25 | 31.29 | 32.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- acf_version
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=wp-feature-box&page=wfb-settings
- > Notice in wp-content/plugins/wp-feature-box/admin.php+98
Undefined index: wfb_settings
- > GET request to /wp-admin/edit.php?post_type=wp-feature-box&page=wfb-settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=wp-feature-box&page=wfb-settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Almost there! Just fix the following items
- 47× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-feature-box/includes/acf/core/controllers/location.php:25
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wp-feature-box/includes/acf/core/fields/post_object.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-feature-box/includes/acf/core/views/meta_box_options.php:18
- > PHP Fatal error
Uncaught Error: Class 'acf_Field' not found in wp-content/plugins/wp-feature-box/includes/acf/add-ons/acf-website-field/website_url.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Feature_Box' not found in wp-content/plugins/wp-feature-box/tinymce.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-feature-box/includes/acf/core/controllers/upgrade.php:25
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wp-feature-box/includes/acf/core/fields/radio.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wp-feature-box/includes/acf/core/fields/file.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-feature-box/includes/acf/core/controllers/everything_fields.php:31
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/wp-feature-box/includes/acf/core/fields/taxonomy.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
wp-feature-box/wp-feature-box.php Passed 13 tests
The primary PHP file in "WP Feature Box" version 0.1.3 is used by WordPress to initiate all plugin functionality
37 characters long description:
A simple WordPress feature box plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin31,651 lines of code in 100 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 15 | 5,769 | 8,560 | 12,675 |
PHP | 51 | 4,171 | 4,807 | 10,198 |
JavaScript | 25 | 3,486 | 2,595 | 6,126 |
CSS | 6 | 718 | 384 | 2,551 |
Markdown | 3 | 51 | 0 | 101 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 21.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 46 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 46 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 340 | |
▷ Static methods | 6 | 1.76% |
▷ Public methods | 331 | 97.35% |
▷ Protected methods | 8 | 2.35% |
▷ Private methods | 1 | 0.29% |
Functions | 50 | |
▷ Named functions | 50 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
27 PNG files occupy 0.25MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/acf/screenshot-4.png | 25.14KB | 5.24KB | ▼ 79.16% |
includes/acf/add-ons/acf-website-field/front-end.png | 8.56KB | 3.30KB | ▼ 61.50% |
includes/acf/images/arrows.png | 0.24KB | 0.24KB | 0.00% |
includes/acf/core/fields/date_picker/images/ui-bg_flat_55_5bc6f5_40x100.png | 0.21KB | 0.08KB | ▼ 59.15% |
includes/acf/images/sprite.png | 5.94KB | 2.82KB | ▼ 52.51% |