Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/last-revision-widget/last-revision-widget.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; LastRevisionDateWidget has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼62.78ms] Passed 4 tests
An overview of server-side resources used by Last Revision Date Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.45 ▼42.96 |
Dashboard /wp-admin | 2.08 ▼1.26 | 5.25 ▼58.78 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 6.56 ▼47.13 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 5.09 ▼102.26 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.38 ▼32.73 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_lastrevisiondatewidget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Last Revision Date Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.32 ▼1.05 | 2.02 ▲0.35 | 42.43 ▼4.74 |
Dashboard /wp-admin | 2,206 ▲15 | 4.84 ▼0.07 | 112.43 ▲12.78 | 42.73 ▼1.07 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.03 | 37.78 ▲1.88 | 36.52 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 23.30 ▲5.73 | 683.36 ▼10.91 | 62.86 ▲8.60 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.20 ▼0.01 | 99.46 ▼0.54 | 42.85 ▼3.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/last-revision-widget/last-revision-widget.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; LastRevisionDateWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_lastrevisiondatewidget
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/last-revision-widget/last-revision-widget.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: date, sidebar, last, revision, page...
last-revision-widget/last-revision-widget.php Passed 13 tests
Analyzing the main PHP file in "Last Revision Date Widget" version 1.0.0
49 characters long description:
Show last revision date for the current page/post
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 plugin48 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 25 | 48 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected