Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼300.74ms] Passed 4 tests
This is a short check of server-side resources used by Ads after first paragraph
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.07 | 58.86 ▲4.77 |
Dashboard /wp-admin | 3.47 ▲0.05 | 38.28 ▼0.35 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 43.71 ▲2.14 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 97.62 ▼1,201.82 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 25.55 ▼2.94 |
Server storage [IO: ▲0.58MB] [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: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Ads after first paragraph
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,803 ▲49 | 15.69 ▼0.06 | 6.03 ▲0.09 | 2.92 ▲0.57 |
Dashboard /wp-admin | 2,905 ▲44 | 6.15 ▼0.03 | 123.43 ▼17.28 | 175.23 ▲10.26 |
Posts /wp-admin/edit.php | 2,704 ▲16 | 3.14 ▼0.10 | 63.14 ▼3.14 | 143.63 ▼3.47 |
Add New Post /wp-admin/post-new.php | 1,674 ▲6 | 16.60 ▼1.81 | 421.77 ▲11.98 | 193.80 ▲34.88 |
Media Library /wp-admin/upload.php | 1,714 ▲16 | 5.47 ▼0.07 | 126.41 ▼15.11 | 205.30 ▲24.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+307
Non-static method Ads_after_first_paragraph::fiAdd_deactivation_hook() should not be called statically
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
Even though everything seems fine, this is not 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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ads-after-first-paragraph/frontend-add.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Add an image for screenshot #1 (Post with advt. after first paragraph and sticky ads in sidebars)
ads-after-first-paragraph/ads-first-paragraph.php 85% from 13 tests
The main PHP file in "Ads after first paragraph" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ads-after-first-paragraph.php" instead of "ads-first-paragraph.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
Success! There were no dangerous files found in this plugin219 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 34 | 92 | 179 |
CSS | 1 | 13 | 45 | 40 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.56MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 65.21KB | 18.21KB | ▼ 72.07% |
(invalid) assets/images/fiAdd_icon2.png | 1.49KB | 0.00KB | ▼ 100.00% |
assets/screenshot-2.png | 93.19KB | 35.81KB | ▼ 61.57% |
assets/banner-772x250.png | 45.95KB | 16.22KB | ▼ 64.69% |
(invalid) assets/images/icon-128x128.png | 6.34KB | 0.00KB | ▼ 100.00% |