Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.31ms] Passed 4 tests
This is a short check of server-side resources used by The Time Ago
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.82 ▼3.31 |
Dashboard /wp-admin | 3.32 ▲0.01 | 61.23 ▲11.56 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.99 ▼0.92 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.64 ▼3.43 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.90 ▲2.42 |
Time Ago /wp-admin/plugins.php?page=alobaidi_time_ago_settings | 3.21 | 35.44 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by The Time Ago
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▲0.00 | 1.61 ▼0.22 | 38.94 ▼3.10 |
Dashboard /wp-admin | 2,196 ▲16 | 5.61 ▲0.09 | 89.65 ▼1.81 | 35.29 ▼5.85 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.03 | 37.66 ▲1.20 | 32.69 ▼2.61 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.65 ▲0.06 | 696.54 ▲29.33 | 56.39 ▲5.94 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.19 ▼0.05 | 94.52 ▼8.58 | 38.94 ▼7.01 |
Time Ago /wp-admin/plugins.php?page=alobaidi_time_ago_settings | 1,042 | 2.00 | 25.46 | 28.15 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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
Please take a closer look at the following
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/the-time-ago/settings.php
- > /wp-content/plugins/the-time-ago/calculator.php
- > /wp-content/plugins/the-time-ago/the-time-ago.php
- > /wp-content/plugins/the-time-ago/uninstall.php
- > /wp-content/plugins/the-time-ago/if_else.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
the-time-ago/the-time-ago.php Passed 13 tests
The main PHP file in "The Time Ago" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
131 characters long description:
One click convert date and time to "time ago" (e.g. 1 hour ago), easy to use, just one click! translation ready (to your language).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin317 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 82 | 35 | 317 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin