Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.40MB] [CPU: ▼316.65ms] Passed 4 tests
Server-side resources used by Ads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 56.06 ▲5.21 |
Dashboard /wp-admin | 3.20 ▼0.21 | 21.28 ▼11.07 |
Posts /wp-admin/edit.php | 3.26 ▼0.38 | 24.20 ▼15.93 |
Add New Post /wp-admin/post-new.php | 6.04 ▼0.93 | 74.65 ▼1,230.05 |
Media Library /wp-admin/upload.php | 3.22 ▼0.07 | 21.48 ▼9.54 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, no new options
New tables |
---|
wp_METAAPP_ADS |
Browser metrics Passed 4 tests
Ads: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,810 ▲63 | 15.85 ▲0.64 | 6.13 ▼3.33 | 2.51 ▲0.02 |
Dashboard /wp-admin | 2,924 ▲70 | 6.08 ▼0.17 | 130.30 ▼25.68 | 183.39 ▼48.48 |
Posts /wp-admin/edit.php | 2,714 ▲23 | 3.23 ▼0.00 | 62.89 ▲0.70 | 137.35 ▼20.51 |
Add New Post /wp-admin/post-new.php | 1,799 ▲88 | 22.87 ▲1.55 | 426.51 ▼39.49 | 157.24 ▼8.62 |
Media Library /wp-admin/upload.php | 1,723 ▲25 | 5.48 ▼0.00 | 156.57 ▲3.00 | 243.62 ▲54.51 |
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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ads-easy-simple-for-ads-into-post/index.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (16 tag instead of maximum 10)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== ads-easy-simple-for-ads-into-post ===
) - Screenshots: Please add images for these screenshots: #1 (Ads in live action), #2 (Setting Options), #3 (How to add the shortcode in posts/pages)
ads-easy-simple-for-ads-into-post/index.php 92% from 13 tests
"Ads" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ads-easy-simple-for-ads-into-post.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected295 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 43 | 42 | 278 |
CSS | 1 | 2 | 0 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin