Benchmarks
Plugin footprint 82% from 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.11MB] [CPU: ▲338.50ms] 75% from 4 tests
Analyzing server-side resources used by Foremedia Ads Inserter
Please take the time to fix the following items
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 338.50ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.69 ▲0.05 |
Dashboard /wp-admin | 3.46 ▲0.16 | 524.35 ▲480.30 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 491.15 ▲442.06 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 528.02 ▲431.60 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 527.20 ▲491.87 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- You have illegally modified 1 file (0.72KB) outside of "wp-content/plugins/foremedia-ads-inserter/" and "wp-content/uploads/"
- (new file) fmai_sw.js
Filesystem: 9 new files
Database: no new tables, 14 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
fmai_ads_txt |
fmai_analytics_enabled |
fmai_settings_updated |
fmai_show_ads_txt_updated_notice |
widget_recent-posts |
db_upgraded |
fmai_push_enabled |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Foremedia Ads Inserter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲58 | 13.24 ▼1.32 | 4.47 ▲2.61 | 45.56 ▼5.33 |
Dashboard /wp-admin | 2,224 ▲39 | 4.87 ▼0.99 | 107.29 ▲5.45 | 41.35 ▼1.97 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.04 ▼0.02 | 37.61 ▲1.49 | 34.51 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,547 ▲25 | 23.26 ▲0.23 | 650.57 ▼22.56 | 49.85 ▼12.00 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.18 ▼0.04 | 96.00 ▲2.54 | 51.82 ▲6.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/foremedia-ads-inserter/templates/fmai_foremedia_ads_page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foremedia-ads-inserter/includes/menu.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foremedia-ads-inserter/includes/functions.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/foremedia-ads-inserter/foremedia-ads-inserter.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foremedia-ads-inserter/includes/ajax.php:115
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: foremedia platform, foreshop, foremedia, foremedia plugin, adstxt...
foremedia-ads-inserter/foremedia-ads-inserter.php Passed 13 tests
The main PHP file in "Foremedia Ads Inserter" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
75 characters long description:
This plugin allows you to integrate Foremedia Ads into your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin567 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 94 | 174 | 451 |
JavaScript | 2 | 3 | 0 | 102 |
Markdown | 1 | 4 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 21 | |
▷ Named functions | 19 | 90.48% |
▷ Anonymous functions | 2 | 9.52% |
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
No PNG files were detected