Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.31ms] Passed 4 tests
A check of server-side resources used by ElderLawAnswers Content Terminal
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 44.41 ▲2.31 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.96 ▼6.36 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.37 ▼2.03 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.10 ▼11.17 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.88 ▲3.28 |
Sub Level Menu /wp-admin/admin.php?page=myplugin/myplugin-admin-sub-page.php | 3.19 | 34.03 |
Server storage [IO: ▲1.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by ElderLawAnswers Content Terminal
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.38 ▼0.01 | 1.84 ▼0.01 | 43.64 ▼0.07 |
Dashboard /wp-admin | 2,209 ▲35 | 5.61 ▲0.01 | 87.47 ▼20.14 | 41.03 ▼2.26 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.03 ▲0.02 | 37.31 ▲1.46 | 35.74 ▲2.18 |
Add New Post /wp-admin/post-new.php | 1,543 ▲12 | 23.06 ▼0.18 | 677.24 ▲2.08 | 59.64 ▲6.44 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.22 ▲0.02 | 111.30 ▲4.08 | 48.49 ▼0.56 |
Sub Level Menu /wp-admin/admin.php?page=myplugin/myplugin-admin-sub-page.php | 793 | 2.18 | 29.60 | 25.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=myplugin/myplugin-admin-sub-page.php
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'myplguin_admin_sub_page' not found or invalid function name
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/elderlawanswers-content-terminal/public/partials/ela-content-terminal-public-display.php
- > /wp-content/plugins/elderlawanswers-content-terminal/admin/partials/plugin-ela-content-terminal-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/elderlawanswers-content-terminal/admin/templates/index.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: "Attorney.ElderLawAnswers.com"
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
elderlawanswers-content-terminal/elderlawanswers-content-terminal.php 92% from 13 tests
The main PHP script in "ElderLawAnswers Content Terminal" version 1.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 161 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin519 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 138 | 539 | 479 |
JavaScript | 2 | 10 | 54 | 39 |
CSS | 3 | 0 | 8 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 31 | 83.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.22% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected