Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.30MB] [CPU: ▲0.45ms] Passed 4 tests
Analyzing server-side resources used by Fix Content Links
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.21 | 40.74 ▼3.02 |
Dashboard /wp-admin | 3.63 ▲0.33 | 50.79 ▲2.50 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 53.09 ▲3.11 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 101.31 ▼0.00 |
Media Library /wp-admin/upload.php | 3.55 ▲0.33 | 38.54 ▲2.32 |
Fix Content Links /wp-admin/options-general.php?page=fix-content-links | 3.46 | 34.63 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Fix Content Links
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.72 ▼0.57 | 1.61 ▼0.71 | 42.62 ▼2.56 |
Dashboard /wp-admin | 2,210 ▲25 | 5.87 ▼0.14 | 101.64 ▼18.16 | 40.73 ▲0.08 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.98 ▼0.02 | 36.61 ▼5.34 | 30.38 ▼7.42 |
Add New Post /wp-admin/post-new.php | 1,548 ▲12 | 18.36 ▼4.82 | 627.62 ▼52.73 | 52.89 ▼0.60 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.26 ▲0.03 | 99.73 ▼10.59 | 41.14 ▼5.43 |
Fix Content Links /wp-admin/options-general.php?page=fix-content-links | 822 | 2.04 | 23.52 | 28.16 |
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
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-includes/option.php+2520
Trying to access array offset on value of type null
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/fix-content-links/vendor/lsvh/dynamic-wp-config/tests/InitTest.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Contributors: The plugin contributors field is missing
fix-content-links/index.php 85% from 13 tests
The main PHP file in "Fix Content Links" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fix-content-links.php" instead of "index.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
There were no executable files found in this plugin1,330 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 321 | 632 | 1,184 |
JSON | 3 | 0 | 0 | 90 |
Markdown | 1 | 32 | 0 | 56 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 4 | |
Traits | 1 | |
Classes | 17 | |
▷ Abstract classes | 3 | 17.65% |
▷ Concrete classes | 14 | 82.35% |
▷ Final classes | 1 | 7.14% |
Methods | 128 | |
▷ Static methods | 20 | 15.62% |
▷ Public methods | 103 | 80.47% |
▷ Protected methods | 2 | 1.56% |
▷ Private methods | 23 | 17.97% |
Functions | 9 | |
▷ Named functions | 1 | 11.11% |
▷ Anonymous functions | 8 | 88.89% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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 were not PNG files found in your plugin