Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/section-posts/section-posts.php+36
Methods with the same name as their class will not be constructors in a future version of PHP; Section_Posts_Widget has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼195.68ms] Passed 4 tests
An overview of server-side resources used by Section Posts Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼1.04 | 5.25 ▼32.12 |
Dashboard /wp-admin | 1.82 ▼1.24 | 5.59 ▼49.27 |
Posts /wp-admin/edit.php | 1.82 ▼1.29 | 5.23 ▼44.50 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.61 | 5.63 ▼642.24 |
Media Library /wp-admin/upload.php | 1.82 ▼1.19 | 5.35 ▼46.69 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_section-posts-widget |
Browser metrics Passed 4 tests
Checking browser requirements for Section Posts Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.21 ▲0.57 | 8.52 ▲0.12 | 45.15 ▼8.81 |
Dashboard /wp-admin | 2,970 ▲39 | 5.90 ▼0.05 | 142.94 ▼5.78 | 110.06 ▼2.92 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.02 | 65.96 ▼1.94 | 99.74 ▲11.43 |
Add New Post /wp-admin/post-new.php | 1,683 ▲102 | 16.53 ▼1.18 | 369.87 ▼50.04 | 111.46 ▼3.22 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▲0.02 | 149.75 ▼28.65 | 122.27 ▼17.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/section-posts/section-posts.php+36
Methods with the same name as their class will not be constructors in a future version of PHP; Section_Posts_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_section-posts-widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/section-posts/section-posts.php:16
- > PHP Fatal 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== section-posts ===
)
section-posts/section-posts.php Passed 13 tests
The primary PHP file in "Section Posts Widget" version 0.1 is used by WordPress to initiate all plugin functionality
35 characters long description:
Displays posts related to sections.
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
Success! There were no dangerous files found in this plugin113 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 43 | 52 | 113 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
PNG images were not found in this plugin