Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/random-ads-by-aarvis/random-ads-by-aarvis.php+22
Undefined variable: STP_charset_collate
Server metrics [RAM: ▼1.75MB] [CPU: ▼194.58ms] Passed 4 tests
An overview of server-side resources used by Random Ads by Aarvis
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.88 ▼0.84 | 7.58 ▼14.02 |
Dashboard /wp-admin | 1.90 ▼1.16 | 9.24 ▼36.81 |
Posts /wp-admin/edit.php | 1.90 ▼1.22 | 5.46 ▼48.59 |
Add New Post /wp-admin/post-new.php | 1.90 ▼3.53 | 5.35 ▼663.02 |
Media Library /wp-admin/upload.php | 1.90 ▼1.10 | 4.86 ▼29.91 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_RAA_Ad_Units |
New WordPress options |
---|
RAA_show_cnt |
RAA_LetterCount |
RAA_ParaCount |
RAA_ChkRandom |
RAA_Show_Mod |
RAA_DbVesion |
Browser metrics Passed 4 tests
An overview of browser requirements for Random Ads by Aarvis
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲59 | 16.29 ▲0.80 | 10.07 ▲1.14 | 47.64 ▼2.05 |
Dashboard /wp-admin | 2,989 ▲52 | 5.90 ▼0.08 | 147.56 ▼17.21 | 119.35 ▼13.36 |
Posts /wp-admin/edit.php | 2,761 ▲22 | 2.71 ▲0.02 | 71.13 ▼3.26 | 95.46 ▲4.68 |
Add New Post /wp-admin/post-new.php | 1,698 ▲15 | 18.71 ▲0.23 | 398.77 ▼2.27 | 120.78 ▲4.47 |
Media Library /wp-admin/upload.php | 1,829 ▲22 | 5.01 ▼0.00 | 149.13 ▼0.47 | 125.95 ▼1.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5663
wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the RAA_Style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 1 option in the database
- RAA_DbVesion
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/random-ads-by-aarvis/random-ads-by-aarvis.php:107
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (The plugin Menu), #2 (Insert Ads in Ad blocks.)
random-ads-by-aarvis/random-ads-by-aarvis.php Passed 13 tests
The main file in "Random Ads by Aarvis" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
120 characters long description:
This is a simple plugin to insert Ads to your website. As the name says you can show random Ads within your post content
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin386 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 75 | 20 | 336 |
CSS | 1 | 6 | 0 | 50 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 8 | |
▷ Named functions | 8 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 32.10KB | 18.51KB | ▼ 42.34% |
screenshot-2.png | 40.07KB | 18.55KB | ▼ 53.70% |