Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼140.07ms] Passed 4 tests
Analyzing server-side resources used by AB Human Time
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.99 ▲11.17 |
Dashboard /wp-admin | 3.06 ▲0.01 | 54.33 ▲4.45 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 49.74 ▲1.61 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 98.43 ▼567.35 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 36.37 ▲1.00 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for AB Human Time
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,706 ▲110 | 15.87 ▲0.31 | 10.98 ▼0.51 | 48.19 ▼6.53 |
Dashboard /wp-admin | 2,970 ▲39 | 6.09 ▲0.16 | 150.92 ▼2.26 | 109.36 ▼10.16 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.00 | 65.67 ▼10.61 | 93.96 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,676 ▲95 | 18.86 ▼1.56 | 398.30 ▼1.48 | 115.01 ▼14.91 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 4.99 ▼0.05 | 155.99 ▼7.30 | 124.68 ▲9.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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/ab-human-time/ab-human-time.php:35
- > 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
3 plugin tags: display, time, posts
ab-human-time/ab-human-time.php Passed 13 tests
The principal PHP file in "AB Human Time" v. 0.1 is loaded by WordPress automatically on each request
89 characters long description:
This plugin shows the time elapsed since a post was published in a human readable format.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected54 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 29 | 37 |
PO File | 1 | 2 | 5 | 17 |
PHP code Passed 2 tests
This is a very shot 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.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot.png | 0.72KB | 0.62KB | ▼ 13.43% |
images/ab_clock12x12.png | 0.35KB | 0.28KB | ▼ 20.33% |
images/ab_clock16x16.png | 0.55KB | 0.44KB | ▼ 19.93% |