Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.66MB] [CPU: ▼23.06ms] Passed 4 tests
A check of server-side resources used by Feature On Homepage
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.60 ▼8.04 |
Dashboard /wp-admin | 3.35 ▲0.04 | 63.78 ▲1.05 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 42.79 ▼9.80 |
Add New Post /wp-admin/post-new.php | 3.13 ▼2.75 | 36.28 ▼74.32 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.66 ▼0.09 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Feature On Homepage: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲37 | 14.22 ▲0.23 | 1.81 ▼0.06 | 46.64 ▼0.10 |
Dashboard /wp-admin | 2,209 ▲21 | 6.01 ▲1.15 | 144.23 ▲9.10 | 55.94 ▲11.77 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.98 ▼0.07 | 39.59 ▼4.50 | 40.24 ▼4.05 |
Add New Post /wp-admin/post-new.php | 8,505 ▲7,092 | 20.04 ▲2.06 | 1,030.89 ▲378.74 | 87.21 ▲25.75 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.24 ▲0.09 | 110.62 ▼7.53 | 53.66 ▼1.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/feature-on-homepage/includes/metabox.php:108
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/feature-on-homepage/includes/shortcode.php:95
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
2 plugin tags: homepage, featured
feature-on-homepage/feature-on-homepage.php 92% from 13 tests
The main PHP script in "Feature On Homepage" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 246 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,865 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 6 | 9 | 1,680 |
PHP | 4 | 97 | 49 | 180 |
Markdown | 1 | 3 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin