Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/time-ago-units/time-ago-units.php+37
require_once(wp-content/plugins/time-ago-units/autoloader.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.76ms] Passed 4 tests
Server-side resources used by Time Ago Units
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.71 ▼9.82 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.37 ▼1.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.82 ▼2.65 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.69 ▼0.92 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.56 ▼1.33 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Time Ago Units
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.22 ▼1.17 | 1.63 ▼0.09 | 42.59 ▼6.54 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.96 | 99.82 ▼5.49 | 38.46 ▼3.90 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.06 ▲0.05 | 40.54 ▲4.95 | 35.02 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,519 ▲5 | 22.93 ▲5.36 | 621.85 ▼80.97 | 52.91 ▼7.19 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▲0.04 | 95.56 ▼4.46 | 42.19 ▼0.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/time-ago-units/autoloader.php' (include_path='.:/usr/share/php') in wp-content/plugins/time-ago-units/time-ago-units.php on line 37
- > PHP Warning
require_once(wp-content/plugins/time-ago-units/autoloader.php): failed to open stream: No such file or directory in wp-content/plugins/time-ago-units/time-ago-units.php on line 37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
time-ago-units/time-ago-units.php 92% from 13 tests
The principal PHP file in "Time Ago Units" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("3.0.1" instead of "5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected180 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 51 | 46 | 180 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected