Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼1.59ms] Passed 4 tests
A check of server-side resources used by Recently Edited Content Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 36.38 ▼1.70 |
Dashboard /wp-admin | 3.46 ▲0.15 | 49.19 ▲3.63 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 50.23 ▲4.34 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 80.08 ▼7.21 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 33.93 ▼1.08 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Recently Edited Content Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,020 ▲274 | 13.36 ▼1.23 | 1.77 ▼0.07 | 29.78 ▼8.70 |
Dashboard /wp-admin | 2,423 ▲235 | 5.06 ▲0.20 | 115.93 ▲13.15 | 50.82 ▲8.29 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.02 | 46.49 ▲8.14 | 33.32 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.46 ▲5.99 | 667.78 ▼107.00 | 59.86 ▲6.32 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.18 ▲0.01 | 95.88 ▼3.19 | 40.32 ▼5.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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 server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recently-edited-content-widget/recently-edited-content-widget.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
8 plugin tags: widget, user preferences, recent content, dashboard, dashboard widget...
recently-edited-content-widget/recently-edited-content-widget.php Passed 13 tests
The main file in "Recently Edited Content Widget" v. 0.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
This plugin provides a dashboard widget that shows content you have modified recently.
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
No dangerous file extensions were detected1,179 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 151 | 15 | 500 |
Sass | 2 | 51 | 0 | 249 |
JavaScript | 3 | 52 | 113 | 219 |
JSON | 3 | 29 | 0 | 210 |
CSS | 1 | 0 | 0 | 1 |
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.50 |
Average class complexity | 103.00 |
▷ Minimum class complexity | 103.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 4.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.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 | 26 | |
▷ Static methods | 26 | 100.00% |
▷ Public methods | 22 | 84.62% |
▷ Protected methods | 4 | 15.38% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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
9 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
imgs/icon-image.png | 0.59KB | 0.59KB | 0.00% |
imgs/wavy-lines-green.png | 0.10KB | 0.10KB | 0.00% |
imgs/red-x.png | 0.13KB | 0.13KB | 0.00% |
imgs/wavy-lines.png | 0.09KB | 0.10KB | 0.00% |
imgs/45-deg-white.png | 0.17KB | 0.19KB | 0.00% |