Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.80ms] Passed 4 tests
An overview of server-side resources used by IDATERMS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.96 ▼7.25 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.29 ▼0.38 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 53.24 ▲1.80 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 95.57 ▼1.36 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 38.24 ▲3.10 |
IDATERMS /wp-admin/options-general.php?page=sort_taxonomies_date | 3.23 | 33.45 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
idaterms_options |
db_upgraded |
Browser metrics Passed 4 tests
IDATERMS: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.78 ▲0.22 | 1.78 ▼0.55 | 41.78 ▼1.63 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.98 | 113.38 ▼7.72 | 44.05 ▲5.83 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.01 ▼0.04 | 40.52 ▲3.34 | 36.85 ▼1.04 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 18.08 ▼4.96 | 623.81 ▼43.70 | 54.08 ▼14.69 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.21 ▼0.06 | 102.91 ▲0.20 | 45.56 ▲2.81 |
IDATERMS /wp-admin/options-general.php?page=sort_taxonomies_date | 800 | 2.06 | 26.19 | 28.48 |
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 did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- idaterms_options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=sort_taxonomies_date
- > Warning in wp-content/plugins/idaterms-sort-terms-by-id-date/admin/class-idaterms-sort-terms-by-date-admin.php+77
Use of undefined constant checked - assumed 'checked' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/idaterms-sort-terms-by-id-date/public/partials/idaterms-sort-terms-by-date-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: categories, taxonomy, category, tags, admin...
idaterms-sort-terms-by-id-date/idaterms-sort-terms-by-date.php 92% from 13 tests
"IDATERMS" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("idaterms-sort-terms-by-id-date.php" instead of "idaterms-sort-terms-by-date.php")
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 detected316 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 116 | 463 | 263 |
PO File | 1 | 8 | 9 | 43 |
JavaScript | 2 | 4 | 54 | 6 |
XML | 1 | 0 | 0 | 4 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
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
There are no PNG files in this plugin