Benchmarks
Plugin footprint 83% 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.02MB] [CPU: ▼4.50ms] Passed 4 tests
Server-side resources used by Definitions - Internal Linkbuilding
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 37.78 ▼2.19 |
Dashboard /wp-admin | 3.51 ▲0.20 | 54.04 ▲2.10 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 54.78 ▲10.64 |
Add New Post /wp-admin/post-new.php | 5.40 ▼0.49 | 68.62 ▼28.53 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 42.60 ▲12.16 |
Definitions /wp-admin/edit-tags.php?taxonomy=definitions_title | 3.42 | 40.45 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
rspdef_activation_time |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Definitions - Internal Linkbuilding
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲144 | 13.66 ▼0.74 | 5.33 ▲3.51 | 42.50 ▼4.90 |
Dashboard /wp-admin | 2,210 ▲25 | 4.84 ▼0.03 | 108.99 ▼6.86 | 41.05 ▼5.17 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.01 ▲0.02 | 40.73 ▲3.81 | 36.44 ▼2.02 |
Add New Post /wp-admin/post-new.php | 6,331 ▲4,789 | 18.91 ▲0.40 | 902.89 ▲293.58 | 57.01 ▼3.48 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.19 ▼0.04 | 99.32 ▼4.43 | 42.20 ▲0.25 |
Definitions /wp-admin/edit-tags.php?taxonomy=definitions_title | 1,235 | 2.13 | 27.68 | 31.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- rspdef_activation_time
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/definitions-internal-linkbuilding/definitions.php
- > /wp-content/plugins/definitions-internal-linkbuilding/text_parser.php
- > /wp-content/plugins/definitions-internal-linkbuilding/post_type.php
- > /wp-content/plugins/definitions-internal-linkbuilding/shepherd/tour.php
- > /wp-content/plugins/definitions-internal-linkbuilding/review.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/definitions-internal-linkbuilding/templates/preview.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: linkbuilding, hyperlinks, tooltips, cool
definitions-internal-linkbuilding/definitions.php 77% from 13 tests
Analyzing the main PHP file in "Definitions - Internal Linkbuilding" version 1.0.2
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("definitions-internal-linkbuilding.php" instead of "definitions.php")
- Domain Path: The domain path folder does not exist ("/lang")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected5,478 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 662 | 250 | 4,008 |
PHP | 7 | 203 | 259 | 846 |
CSS | 10 | 8 | 29 | 388 |
LESS | 4 | 41 | 15 | 211 |
Markdown | 1 | 16 | 0 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 3 | 7.14% |
▷ Public methods | 33 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 21.43% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/s.png | 0.13KB | 0.09KB | ▼ 30.66% |