Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wp_post_advertisement::my_plugin_create_db() should not be called statically
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.85ms] Passed 4 tests
Server-side resources used by WP Post Advertisement
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.22 ▼2.36 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.17 ▼2.29 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 44.88 ▼4.82 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 87.66 ▼1.92 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.20 ▲1.39 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_post_advertisement |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Post Advertisement
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲65 | 13.62 ▼1.11 | 4.64 ▲2.30 | 40.29 ▼6.51 |
Dashboard /wp-admin | 2,221 ▲30 | 4.81 ▼1.12 | 98.19 ▼6.06 | 39.71 ▼6.61 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.03 ▼0.01 | 35.76 ▼0.77 | 33.83 ▼3.93 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.26 ▲0.11 | 634.67 ▼10.42 | 44.77 ▼8.86 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.18 ▼0.05 | 98.86 ▲4.24 | 43.69 ▲2.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method wp_post_advertisement::wpa_deactivation_hook() should not be called statically
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Add a description for screenshot #3 in wp-post-advertisement/assets to your readme.txt
wp-post-advertisement/wp-post-advertisement.php Passed 13 tests
The main PHP script in "WP Post Advertisement" version 1.0 is automatically included on every request by WordPress
61 characters long description:
WP Post Advertisement create exit advertisement in your site.
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
There were no executable files found in this plugin343 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 101 | 73 | 269 |
CSS | 1 | 7 | 3 | 74 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin