Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼270.46ms] Passed 4 tests
This is a short check of server-side resources used by Coming Soon / Maintenance Mode / Under construction Plugin by AV Themes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 41.43 ▲20.88 |
Dashboard /wp-admin | 3.15 ▲0.10 | 46.56 ▲1.71 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 45.22 ▲4.30 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 92.34 ▼1,086.39 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 35.50 ▼1.47 |
Coming Soon /wp-admin/options-general.php?page=AV_CS_plugin_options | 3.23 | 36.10 |
Server storage [IO: ▲0.62MB] [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: 48 new files
Database: no new tables, 1 new option
New WordPress options |
---|
AV_CS_options |
Browser metrics Passed 4 tests
Checking browser requirements for Coming Soon / Maintenance Mode / Under construction Plugin by AV Themes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,754 ▲172 | 15.75 ▲0.19 | 9.27 ▲2.05 | 51.53 ▲1.90 |
Dashboard /wp-admin | 2,932 ▲79 | 5.95 ▼0.09 | 139.84 ▲7.38 | 101.14 ▼3.05 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▼0.01 | 62.23 ▼1.75 | 83.63 ▼6.42 |
Add New Post /wp-admin/post-new.php | 1,484 ▼369 | 18.48 ▼0.73 | 355.56 ▼25.87 | 110.89 ▼4.03 |
Media Library /wp-admin/upload.php | 1,803 ▲28 | 5.09 ▲0.09 | 154.52 ▼4.90 | 101.91 ▼20.60 |
Coming Soon /wp-admin/options-general.php?page=AV_CS_plugin_options | 3,671 | 5.47 | 123.46 | 174.02 |
Uninstaller [IO: ▲0.29MB] [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
- Zombie WordPress options were found after uninstall: 1 option
- AV_CS_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/av-coming-soon/includes/admin/tpl/av-plugins-main.php
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: AV_CS_options in wp-content/plugins/av-coming-soon/includes/front/tpl/header.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/av-coming-soon/includes/front/tpl/header.php:9
- > PHP Notice
Undefined variable: notice_type in wp-content/plugins/av-coming-soon/includes/admin/tpl/admin_notice.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/av-coming-soon/includes/admin/init.php:35
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/av-coming-soon/includes/front/tpl/header.php on line 1
- > PHP Notice
Undefined variable: av_plugins in wp-content/plugins/av-coming-soon/includes/admin/tpl/av-plugins-main.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/av-coming-soon/includes/front/tpl/header.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_footer() in wp-content/plugins/av-coming-soon/includes/front/tpl/footer.php:2
- > PHP Notice
Undefined variable: AV_CS_options in wp-content/plugins/av-coming-soon/includes/front/tpl/header.php on line 1
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/av-coming-soon/includes/admin/tpl/av-plugins-main.php on line 3
- > PHP Notice
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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: maintenance mode, coming soon, construction, under development
av-coming-soon/index.php 92% from 13 tests
The main PHP script in "Coming Soon / Maintenance Mode / Under construction Plugin by AV Themes" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("av-coming-soon.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
Everything looks great! No dangerous files found in this plugin10,868 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 1,213 | 16 | 9,132 |
PHP | 17 | 281 | 174 | 908 |
SVG | 7 | 7 | 7 | 729 |
JavaScript | 6 | 32 | 21 | 99 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/av_icon_512.png | 24.09KB | 8.65KB | ▼ 64.09% |
assets/images/av_icon_64.png | 2.30KB | 1.94KB | ▼ 15.68% |
assets/images/av_icon_256.png | 8.87KB | 4.36KB | ▼ 50.88% |
assets/images/av_plugins_logo.png | 1.87KB | 1.76KB | ▼ 6.01% |
assets/images/av_icon_16.png | 0.60KB | 0.77KB | 0.00% |