Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/fancy-posts-widget/fancy-posts-widget.php+229
syntax error, unexpected '?>
', expecting function (T_FUNCTION) or const (T_CONST)
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.89ms] Passed 4 tests
An overview of server-side resources used by Fancy Posts Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 51.49 ▲7.10 |
Dashboard /wp-admin | 3.31 ▼0.04 | 51.20 ▼16.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.72 ▼1.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.42 ▼21.82 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 42.89 ▲0.36 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fancy Posts Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.19 ▼0.97 | 2.10 ▲0.29 | 43.31 ▼0.79 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲1.04 | 106.92 ▲0.80 | 43.18 ▼0.28 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.04 | 41.77 ▲2.15 | 34.59 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,533 ▲12 | 23.31 ▲0.31 | 673.12 ▼7.62 | 51.42 ▲0.64 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▼0.01 | 100.60 ▼22.89 | 44.75 ▼3.98 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected '?>\r', expecting function (T_FUNCTION) or const (T_CONST) in wp-content/plugins/fancy-posts-widget/fancy-posts-widget.php on line 229
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Widget options)
- Donate link: Please fix this invalid url: ""
fancy-posts-widget/fancy-posts-widget.php Passed 13 tests
The entry point to "Fancy Posts Widget" version 1.4 is a PHP file that has certain tags in its header comment area
40 characters long description:
Another posts widget with many features.
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
There were no executable files found in this plugin208 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 12 | 20 | 208 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 13.73KB | 5.86KB | ▼ 57.32% |