Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/auto-insert-content/logic.php+39
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.90MB] [CPU: ▼55.21ms] Passed 4 tests
Analyzing server-side resources used by Auto Content Inserter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.76 ▼36.06 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.82 ▼47.06 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.47 ▼41.01 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.95 ▼96.70 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.72 ▼32.07 |
Auto insert content /wp-admin/options-general.php?page=auto-insert-content | 2.11 | 6.08 |
Server storage [IO: ▲0.02MB] [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: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
evidcube_aic_meta |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Auto Content Inserter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.36 ▲0.01 | 1.67 ▲0.05 | 39.78 ▼2.40 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▼0.00 | 84.10 ▼9.00 | 39.32 ▼1.00 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▼0.00 | 40.57 ▲0.25 | 34.28 ▼6.26 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 18.36 ▼4.52 | 637.50 ▲20.09 | 73.57 ▲6.33 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.22 ▲0.02 | 101.12 ▼0.06 | 45.38 ▼1.91 |
Auto insert content /wp-admin/options-general.php?page=auto-insert-content | 845 | 1.99 | 22.38 | 30.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/auto-insert-content/logic.php+39
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- evidcube_aic_meta
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=auto-insert-content
- > Deprecated in wp-content/plugins/auto-insert-content/logic.php+39
Array and string offset access syntax with curly braces is deprecated
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-insert-content/index.php:67
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/auto-insert-content/templates/admin-view.php:4
- > PHP Fatal error
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 93% 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 to be fixed:
- Contributors: Plugin contributors field is missing
auto-insert-content/index.php 92% from 13 tests
The main PHP file in "Auto Content Inserter" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("auto-insert-content.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin413 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 73 | 13 | 302 |
PO File | 2 | 24 | 24 | 111 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 19 | 100.00% |
▷ Public methods | 16 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.79% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin