Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-recent-views/widget.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Recent_Views_Widget has a deprecated constructor
Server metrics [RAM: ▼1.88MB] [CPU: ▼59.59ms] Passed 4 tests
A check of server-side resources used by WP Recent Views
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 6.94 ▼42.04 |
Dashboard /wp-admin | 2.12 ▼1.18 | 5.73 ▼48.18 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 5.95 ▼53.49 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 6.71 ▼94.65 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.14 ▼31.47 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-views |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Recent Views
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.14 ▼0.39 | 2.48 ▲0.88 | 43.11 ▲2.98 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▲0.06 | 98.32 ▲9.63 | 48.17 ▲2.96 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.02 | 35.59 ▼0.49 | 32.56 ▼3.70 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.05 ▼0.21 | 623.30 ▼51.39 | 63.62 ▲2.68 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.04 | 99.39 ▲4.39 | 44.20 ▲0.05 |
Recent Views /wp-admin/wp-recent-views.php | 26 | 0.42 | 0.08 | 13.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-recent-views/widget.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Recent_Views_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- aep_end_date
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-views
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/wp-recent-views.php
- > Network (severe)
wp-admin/wp-recent-views.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tested up to: The plugin version is formatted incorrectly
wp-recent-views/wp-recent-views.php Passed 13 tests
This is the main PHP file of "WP Recent Views" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Display a list of pages you have seen recently.
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
Good job! No executable or dangerous file extensions detected442 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 54 | 13 | 349 |
PO File | 1 | 14 | 15 | 52 |
JavaScript | 2 | 7 | 0 | 41 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin