Benchmarks
Plugin footprint Passed 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.35MB] [CPU: ▼312.43ms] Passed 4 tests
An overview of server-side resources used by ADs Inside Post
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 63.80 ▲12.47 |
Dashboard /wp-admin | 3.24 ▼0.17 | 22.40 ▼10.94 |
Posts /wp-admin/edit.php | 3.30 ▼0.34 | 24.77 ▼10.93 |
Add New Post /wp-admin/post-new.php | 6.11 ▼0.89 | 75.28 ▼1,226.28 |
Media Library /wp-admin/upload.php | 3.27 ▼0.03 | 21.72 ▼1.58 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: 1 new table, no new options
New tables |
---|
wp_AIPWP_ADS |
Browser metrics Passed 4 tests
An overview of browser requirements for ADs Inside Post
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,822 ▲78 | 15.85 ▼0.17 | 6.69 ▲0.74 | 2.14 ▼0.34 |
Dashboard /wp-admin | 2,918 ▲64 | 6.12 ▼0.10 | 122.90 ▼14.66 | 158.95 ▼4.28 |
Posts /wp-admin/edit.php | 2,717 ▲23 | 3.23 ▼0.01 | 63.91 ▼0.99 | 142.74 ▲0.24 |
Add New Post /wp-admin/post-new.php | 1,778 ▲70 | 17.64 ▼2.74 | 407.31 ▼50.78 | 156.53 ▲0.81 |
Media Library /wp-admin/upload.php | 1,723 ▲25 | 5.52 ▼0.00 | 144.27 ▲3.07 | 191.72 ▲8.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ads-inside-post-aipwp/admin/admin.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ads-inside-post-aipwp/index.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== ads-inside-post-aipwp ===
) - Screenshots: These screenshots do not have images: #1 (This shows ADs Inside Post in action), #2 (Shows Setting Options), #3 (Shows how to add the shortcode in posts/pages), #4 (Shows the Shortcode attrubute handling)
ads-inside-post-aipwp/index.php 92% from 13 tests
The primary PHP file in "ADs Inside Post" version 1.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("ads-inside-post-aipwp.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin582 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 85 | 35 | 565 |
CSS | 1 | 9 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin