Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method Ianhub_WP_AdPosts::activate() should not be called statically
Server metrics [RAM: ▼0.05MB] [CPU: ▼145.13ms] Passed 4 tests
Server-side resources used by WP AdPosts by Kader Bouyakoub
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.00 ▼0.72 | 8.09 ▼13.76 |
Dashboard /wp-admin | 3.24 ▲0.18 | 51.23 ▲3.28 |
Posts /wp-admin/edit.php | 3.35 ▲0.24 | 47.20 ▲2.72 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.16 | 93.39 ▼570.68 |
Media Library /wp-admin/upload.php | 3.18 ▲0.18 | 37.85 ▲1.21 |
All Ads /wp-admin/edit.php?post_type=wpap_ad | 3.22 | 32.88 |
Add /wp-admin/post-new.php?post_type=wpap_ad | 3.28 | 47.97 |
Locations /wp-admin/edit-tags.php?taxonomy=wpap_location&post_type=wpap_ad | 3.18 | 32.26 |
WP AdPosts /wp-admin/options-general.php?page=wp-adposts | 3.15 | 32.95 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wp_adposts_sizes |
Browser metrics Passed 4 tests
An overview of browser requirements for WP AdPosts by Kader Bouyakoub
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,873 ▲277 | 15.83 ▲0.28 | 12.61 ▲5.93 | 56.57 ▲1.42 |
Dashboard /wp-admin | 3,014 ▲80 | 5.89 ▲0.00 | 144.03 ▼12.82 | 108.46 ▼19.65 |
Posts /wp-admin/edit.php | 2,780 ▲41 | 2.70 ▲0.02 | 67.95 ▼0.29 | 95.70 ▲5.21 |
Add New Post /wp-admin/post-new.php | 1,709 ▲26 | 18.76 ▲0.02 | 387.68 ▲1.35 | 108.20 ▼11.77 |
Media Library /wp-admin/upload.php | 1,848 ▲41 | 5.05 ▲0.03 | 163.90 ▲2.19 | 123.83 ▼5.27 |
All Ads /wp-admin/edit.php?post_type=wpap_ad | 1,506 | 2.63 | 73.40 | 82.07 |
Add /wp-admin/post-new.php?post_type=wpap_ad | 3,018 | 8.88 | 221.86 | 150.31 |
Locations /wp-admin/edit-tags.php?taxonomy=wpap_location&post_type=wpap_ad | 1,804 | 2.51 | 67.56 | 84.47 |
WP AdPosts /wp-admin/options-general.php?page=wp-adposts | 1,241 | 2.09 | 66.71 | 81.43 |
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
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method Ianhub_WP_AdPosts::deactivate() should not be called statically
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-adposts/wp-adposts.php
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (After activation, you will see the plugin menu item on your dashboard.)
wp-adposts/wp-adposts.php 92% from 13 tests
The main file in "WP AdPosts by Kader Bouyakoub" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 195 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
No dangerous file extensions were detected1,604 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 175 | 706 | 710 |
Markdown | 2 | 136 | 0 | 566 |
Sass | 1 | 20 | 14 | 125 |
CSS | 2 | 17 | 9 | 101 |
PO File | 1 | 22 | 39 | 80 |
JavaScript | 2 | 5 | 18 | 22 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 77.00 |
▷ Minimum class complexity | 77.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG images were not found in this plugin