Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Parse error in wp-content/plugins/superlinks-ads/sp_actions.php+1110
syntax error, unexpected end of file
Server metrics [RAM: ▼0.02MB] [CPU: ▼294.16ms] Passed 4 tests
An overview of server-side resources used by Superlinks Google Ads Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 61.17 ▲2.70 |
Dashboard /wp-admin | 3.41 ▲0.00 | 39.47 ▲4.90 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 38.00 ▼13.57 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 108.55 ▼1,157.69 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 26.20 ▼8.08 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Superlinks Google Ads Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲19 | 15.10 ▼0.93 | 5.53 ▼0.92 | 2.45 ▲0.19 |
Dashboard /wp-admin | 2,895 ▲35 | 6.11 ▼0.00 | 119.72 ▼2.93 | 160.38 ▼5.20 |
Posts /wp-admin/edit.php | 2,685 ▼0 | 3.23 ▼0.01 | 65.85 ▼2.40 | 202.53 ▼14.35 |
Add New Post /wp-admin/post-new.php | 1,661 ▲22 | 16.52 ▼3.24 | 431.30 ▼21.03 | 233.44 ▲85.72 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.54 ▲0.08 | 138.96 ▼3.46 | 183.32 ▼8.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/superlinks-ads/superlinks-plugin.php:17
- > PHP Parse error
syntax error, unexpected 'else' (T_ELSE) in wp-content/plugins/superlinks-ads/sp_admin.php on line 2534
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/superlinks-ads/sp_widgets.php:3
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/superlinks-ads/sp_actions.php on line 1110
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 45 tag instead of maximum 10
superlinks-ads/superlinks-plugin.php 92% from 13 tests
The principal PHP file in "Superlinks Google Ads Plugin" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("superlinks-ads.php" instead of "superlinks-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,141 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 797 | 75 | 3,127 |
JavaScript | 2 | 3 | 1 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-small.png | 3.06KB | 0.58KB | ▼ 81.19% |
images/sl-logo-small.png | 5.01KB | 2.32KB | ▼ 53.74% |