Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.60ms] Passed 4 tests
Analyzing server-side resources used by Credit Line Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.91 ▼5.05 |
Dashboard /wp-admin | 3.32 ▼0.02 | 49.24 ▼14.65 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.94 ▲1.35 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 95.29 ▼20.04 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.38 ▲4.35 |
Credit Line Generator /wp-admin/options-general.php?page=credit_line_generator | 3.19 | 35.80 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 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
Checking browser requirements for Credit Line Generator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲173 | 14.61 ▲0.25 | 1.66 ▼0.30 | 40.04 ▼8.10 |
Dashboard /wp-admin | 2,340 ▲163 | 5.65 ▼0.02 | 90.41 ▼0.34 | 41.98 ▼0.57 |
Posts /wp-admin/edit.php | 2,247 ▲150 | 2.05 ▲0.08 | 39.11 ▲2.66 | 36.08 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,670 ▲135 | 23.31 ▲4.87 | 606.26 ▼81.36 | 51.79 ▼16.94 |
Media Library /wp-admin/upload.php | 1,547 ▲147 | 4.12 ▼0.09 | 98.44 ▲2.34 | 43.61 ▼1.38 |
Credit Line Generator /wp-admin/options-general.php?page=credit_line_generator | 970 | 2.17 | 24.56 | 32.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=credit_line_generator
- > Notice in wp-content/plugins/credit-line-generator/options.php+51
Trying to access array offset on value of type bool
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/credit-line-generator/options.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/credit-line-generator/creditline.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
credit-line-generator/creditline.php 85% from 13 tests
The principal PHP file in "Credit Line Generator" v. 0.3.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("credit-line-generator.php" instead of "creditline.php")
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
No dangerous file extensions were detected659 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 77 | 71 | 314 |
JavaScript | 2 | 22 | 12 | 145 |
PO File | 1 | 26 | 48 | 86 |
SVG | 1 | 1 | 1 | 76 |
CSS | 1 | 1 | 1 | 38 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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