Benchmarks
Plugin footprint 65% 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.04MB] [CPU: ▼5.07ms] Passed 4 tests
An overview of server-side resources used by Ads after first paragraph
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.87 ▼4.75 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.20 ▼3.26 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 46.60 ▼1.88 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 83.68 ▼10.39 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 40.31 ▲6.30 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Ads after first paragraph
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲82 | 13.19 ▼1.50 | 4.60 ▲2.69 | 43.16 ▼9.86 |
Dashboard /wp-admin | 2,221 ▲33 | 4.96 ▲0.07 | 98.53 ▼15.77 | 76.57 ▲30.10 |
Posts /wp-admin/edit.php | 2,104 ▲12 | 2.02 ▼0.03 | 35.76 ▼3.65 | 31.50 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,680 ▲147 | 22.02 ▼1.16 | 770.82 ▲93.66 | 51.19 ▼1.74 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.21 ▼0.09 | 93.89 ▼5.62 | 84.08 ▲40.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Ads_after_first_paragraph::fiAdd_deactivation_hook() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 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 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: You are using too many tags: 29 tag instead of maximum 10
- Screenshots: Screenshot #1 (Post with advt. after first paragraph and sticky ads in sidebars) image not found
ads-after-first-paragraph/ads-first-paragraph.php 85% from 13 tests
The primary PHP file in "Ads after first paragraph" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- 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")
- Description: Keep the plugin description shorter than 140 characters (currently 165 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! 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
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.56MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/fiAdd_icon.png | 0.84KB | 0.00KB | ▼ 100.00% |
assets/screenshot-3.png | 65.21KB | 18.21KB | ▼ 72.07% |
(invalid) assets/icon-128x128.png | 6.34KB | 0.00KB | ▼ 100.00% |
(invalid) assets/images/icon-256x256.png | 13.68KB | 0.00KB | ▼ 100.00% |
assets/banner-772x250.png | 45.95KB | 16.22KB | ▼ 64.69% |