Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼4.43MB] [CPU: ▼911,210.38ms] Passed 4 tests
Server-side resources used by AINow
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▼18.02 | 42.11 ▼3,644,832.73 |
Dashboard /wp-admin | 21.62 ▲18.23 | 3,653,259.89 ▲3,653,195.42 |
Posts /wp-admin/edit.php | 3.54 ▲0.14 | 55.20 ▲3.51 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.10 | 94.06 ▼16.49 |
Media Library /wp-admin/upload.php | 3.35 ▲0.08 | 41.80 ▲4.19 |
AINOW Statistics /wp-admin/options-general.php?page=ainow-statistics | 3.32 | 174.23 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ainow_users |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for AINow
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲148 | 13.54 ▼0.69 | 12.59 ▲10.88 | 42.80 ▼0.47 |
Dashboard /wp-admin | 2,203 ▲25 | 5.55 ▼0.10 | 88.14 ▼28.78 | 39.65 ▼5.62 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.01 ▲0.00 | 36.13 ▲2.21 | 35.50 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.66 ▲0.56 | 680.60 ▼56.25 | 71.62 ▲8.83 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.18 ▼0.02 | 96.19 ▼19.78 | 41.35 ▼9.63 |
AINOW Statistics /wp-admin/options-general.php?page=ainow-statistics | 887 | 2.05 | 24.76 | 29.68 |
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
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_ainow_users
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ainow-statistics
- > Notice in wp-content/plugins/ainow/ainow_statistics.php+50
Undefined index: country
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ainow-statistics
- > Notice in wp-content/plugins/ainow/ainow_statistics.php+51
Undefined index: city
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ainow-statistics
- > Notice in wp-content/plugins/ainow/ainow_statistics.php+52
Undefined index: regionName
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ainow-statistics
- > Notice in wp-content/plugins/ainow/ainow_statistics.php+53
Undefined index: zip
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ainow-statistics
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ainow-statistics
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/ainow/ainow_statistics.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ainow/ainow.php:24
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/ainow/ainow_statistics.php on line 38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== ainow ===
)
ainow/ainow.php 92% from 13 tests
The principal PHP file in "AINow" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 213 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected596 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 86 | 57 | 392 |
CSS | 2 | 7 | 3 | 76 |
JavaScript | 2 | 6 | 9 | 65 |
Sass | 2 | 9 | 1 | 63 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 61.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 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 | 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
There were not PNG files found in your plugin