Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Error in wp-content/plugins/auto-keyword-backlink/index.php+23
Uncaught Error: Call to undefined function figi_fs() in wp-content/plugins/auto-keyword-backlink/index.php:23
Stack trace:
#0 wp-content/plugins/auto-keyword-backlink/index.php(427): internalLink->__construct()
#1 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
#2 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.76ms] Passed 4 tests
This is a short check of server-side resources used by Auto Keyword Backlink
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.18 ▼3.19 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.36 ▼21.03 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.67 ▼0.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.40 ▼14.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.64 ▲4.33 |
Server storage [IO: ▲3.50MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 187 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
fs_debug_mode |
widget_recent-comments |
fs_active_plugins |
Browser metrics Passed 4 tests
An overview of browser requirements for Auto Keyword Backlink
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.37 ▼0.25 | 1.88 ▲0.20 | 43.75 ▼0.78 |
Dashboard /wp-admin | 2,192 ▲12 | 5.65 ▼0.03 | 92.53 ▼7.30 | 41.42 ▼6.33 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.01 | 36.60 ▼0.03 | 34.64 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,547 ▲2 | 23.35 ▲0.29 | 685.24 ▲13.28 | 59.38 ▲2.77 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.31 ▲0.11 | 106.85 ▲1.33 | 45.45 ▼2.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- fs_active_plugins
- db_upgraded
- widget_theysaidso_widget
- fs_debug_mode
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/auto-keyword-backlink/view.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/auto-keyword-backlink/index.php:11
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: link keyword, keyword linking, auto content link, internal link, auto backlink
auto-keyword-backlink/index.php 85% from 13 tests
Analyzing the main PHP file in "Auto Keyword Backlink" version 1.3
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("auto-keyword-backlink.php" instead of "index.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected33,850 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 118 | 8,149 | 17,136 | 33,429 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 92.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,264 | |
▷ Static methods | 192 | 15.19% |
▷ Public methods | 879 | 69.54% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 368 | 29.11% |
Functions | 93 | |
▷ Named functions | 93 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.22MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius-sdk/assets/img/fast-index-google-indexing.png | 9.16KB | 5.26KB | ▼ 42.58% |
banner.png | 74.27KB | 33.85KB | ▼ 54.43% |
freemius-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
Screenshot_1.png | 22.20KB | 11.57KB | ▼ 47.90% |