Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.71ms] Passed 4 tests
This is a short check of server-side resources used by JC Link Maker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.14 ▼15.18 |
Dashboard /wp-admin | 3.36 ▲0.05 | 46.65 ▼4.21 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.60 ▲3.33 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 94.64 ▼5.15 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.44 ▲1.71 |
Link Maker /wp-admin/admin.php?page=jc-link-maker/link-maker.php | 3.22 | 35.76 |
Add Links /wp-admin/admin.php?page=jc-link-maker/link-maker.php-addLinks | 3.22 | 31.08 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for JC Link Maker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.22 ▼1.37 | 1.69 ▼0.15 | 37.97 ▼8.52 |
Dashboard /wp-admin | 2,236 ▲48 | 4.85 ▼1.05 | 120.55 ▲7.18 | 40.77 ▼7.17 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.00 ▼0.01 | 38.78 ▲0.32 | 36.03 ▲1.20 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 23.48 ▲0.37 | 643.70 ▼19.77 | 62.88 ▲12.49 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.19 ▼0.01 | 97.15 ▼0.39 | 40.98 ▼0.08 |
Link Maker /wp-admin/admin.php?page=jc-link-maker/link-maker.php | 807 | 2.05 | 23.86 | 25.96 |
Add Links /wp-admin/admin.php?page=jc-link-maker/link-maker.php-addLinks | 871 | 2.07 | 22.94 | 25.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method LinkMaker::uninstall() should not be called statically
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jc-link-maker/link-maker.php
- > Notice in wp-content/plugins/jc-link-maker/lib/LinkMaker/Admin.php+32
Undefined index: action
- > GET request to /wp-admin/admin.php?page=jc-link-maker/link-maker.php-addLinks
- > Notice in wp-content/plugins/jc-link-maker/lib/LinkMaker/Admin.php+85
Undefined index: submit
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
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/jc-link-maker/views/admin_addLinks.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jc-link-maker/link-maker.php:192
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/jc-link-maker/views/admin_links.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: A description for screenshot #1 is missing in jc-link-maker/assets to your readme.txt
jc-link-maker/link-maker.php 92% from 13 tests
The primary PHP file in "JC Link Maker" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("jc-link-maker.php" instead of "link-maker.php")
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
Everything looks great! No dangerous files found in this plugin380 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 56 | 74 | 380 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 3 | 13.04% |
▷ Public methods | 17 | 73.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 26.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.11MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 115.79KB | 12.86KB | ▼ 88.89% |