Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.75ms] Passed 4 tests
An overview of server-side resources used by Simple Ads Posting
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.24 ▼0.25 |
Dashboard /wp-admin | 3.32 ▲0.01 | 52.61 ▲5.72 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.08 ▲4.42 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.91 ▲3.88 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.93 ▼1.06 |
Simple Ads Setting /wp-admin/options-general.php?page=simple-ads-posting | 3.22 | 32.89 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Ads Posting
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 14.48 ▼0.27 | 2.00 ▲0.14 | 44.89 ▼1.84 |
Dashboard /wp-admin | 2,213 ▲25 | 4.88 ▼0.01 | 96.22 ▼5.15 | 39.20 ▼7.85 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.99 ▲0.02 | 33.49 ▼3.51 | 32.92 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.66 ▼5.75 | 676.64 ▼36.08 | 67.05 ▲12.71 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.14 ▼0.10 | 102.38 ▼5.02 | 44.68 ▼5.58 |
Simple Ads Setting /wp-admin/options-general.php?page=simple-ads-posting | 823 | 2.04 | 24.94 | 25.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 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
Please fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-ads-posting/simple-ads-admin.php
- > /wp-content/plugins/simple-ads-posting/simple_ads_posting.php
- > /wp-content/plugins/simple-ads-posting/simple-ads-main.php
- > /wp-content/plugins/simple-ads-posting/simple-ads-credit.php
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Screen shot for setting page of the plugin, you can set your ads code here.), #2 (Screen shot for posting page, put the shortcode [ads] or [ads2] any place in your posting as you wish.)
simple-ads-posting/simple_ads_posting.php 92% from 13 tests
The main file in "Simple Ads Posting" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-ads-posting.php" instead of "simple_ads_posting.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected381 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 55 | 62 | 236 |
PHP | 5 | 45 | 30 | 145 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
5 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/email.png | 1.65KB | 0.54KB | ▼ 67.02% |
images/gplus.png | 1.93KB | 0.82KB | ▼ 57.71% |
plugin_setting.png | 19.11KB | 6.73KB | ▼ 64.79% |
images/twitter.png | 3.58KB | 0.79KB | ▼ 77.98% |
posting_page.png | 20.02KB | 9.22KB | ▼ 53.94% |