Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/ab-last-viewed/ab-last-viewed.php+111
Methods with the same name as their class will not be constructors in a future version of PHP; AB_Last_Read has a deprecated constructor
Server metrics [RAM: ▼2.48MB] [CPU: ▼351.21ms] Passed 4 tests
A check of server-side resources used by AB Last Viewed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.89 ▼1.63 | 4.13 ▼46.78 |
Dashboard /wp-admin | 1.91 ▼1.50 | 3.61 ▼31.20 |
Posts /wp-admin/edit.php | 1.91 ▼1.73 | 4.91 ▼37.63 |
Add New Post /wp-admin/post-new.php | 1.91 ▼5.06 | 4.31 ▼1,289.21 |
Media Library /wp-admin/upload.php | 1.91 ▼1.39 | 3.38 ▼21.91 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_ab_last_read |
Browser metrics Passed 4 tests
Checking browser requirements for AB Last Viewed
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲29 | 15.89 ▲0.15 | 5.93 ▼0.34 | 2.31 ▼0.73 |
Dashboard /wp-admin | 2,895 ▲40 | 6.08 ▼0.11 | 116.02 ▼23.49 | 156.36 ▼11.82 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.24 ▲0.01 | 63.62 ▲2.64 | 137.02 ▼4.98 |
Add New Post /wp-admin/post-new.php | 1,661 ▼97 | 16.52 ▼5.43 | 430.68 ▼3.58 | 155.69 ▼5.90 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.47 ▼0.04 | 134.05 ▼2.34 | 182.50 ▼3.42 |
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
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/ab-last-viewed/ab-last-viewed.php+111
Methods with the same name as their class will not be constructors in a future version of PHP; AB_Last_Read has a deprecated constructor
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_ab_last_read
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
Good news, no errors were detected
SRP 50% from 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ab-last-viewed/ab-last-viewed.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (Appereance in the right side-bar of Twentyfourteen theme)
ab-last-viewed/ab-last-viewed.php Passed 13 tests
The main PHP script in "AB Last Viewed" version 0.1 is automatically included on every request by WordPress
61 characters long description:
This plugin adds a widget that shows the last five post read.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected108 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 74 | 88 |
PO File | 1 | 2 | 2 | 20 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin