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
Install script ran successfully
Server metrics [RAM: ▲0.63MB] [CPU: ▲2.66ms] Passed 4 tests
Analyzing server-side resources used by Custom API For WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.66 | 44.18 ▲4.06 |
Dashboard /wp-admin | 3.96 ▲0.66 | 50.72 ▲1.94 |
Posts /wp-admin/edit.php | 4.01 ▲0.66 | 54.71 ▲9.96 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.60 | 96.99 ▼0.45 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 40.67 ▲5.10 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 57 new files
Database: no new tables, 9 new options
New WordPress options |
---|
cutom_api_wp_host_name |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
custom_api_authentication_new_customer |
widget_theysaidso_widget |
mo_custom_api_wp_version |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom API For WP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.36 ▼1.07 | 1.71 ▼0.09 | 44.04 ▼4.91 |
Dashboard /wp-admin | 2,224 ▲36 | 5.84 ▲0.76 | 102.05 ▼13.12 | 61.32 ▲12.70 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.00 ▲0.03 | 38.47 ▲2.65 | 32.78 ▲1.03 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 18.37 ▼4.91 | 694.98 ▲0.50 | 64.82 ▲9.25 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.24 ▲0.02 | 103.74 ▲0.06 | 44.10 ▼1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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: 7 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- mo_custom_api_wp_version
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/custom-api-for-wp/admin/partials/custom-api-for-wordpress-admin-display.php
- > /wp-content/plugins/custom-api-for-wp/public/partials/custom-api-for-wordpress-public-display.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)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #6 (External API Integration) image not found
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
custom-api-for-wp/custom-api-for-wordpress.php 85% from 13 tests
Analyzing the main PHP file in "Custom API For WP" version 2.8.0
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 173 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("custom-api-for-wp.php" instead of "custom-api-for-wordpress.php")
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 plugin4,545 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 471 | 961 | 4,421 |
JavaScript | 5 | 0 | 10 | 118 |
CSS | 6 | 0 | 9 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 5.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 8 | 24.24% |
▷ Public methods | 28 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.15% |
Functions | 56 | |
▷ Named functions | 54 | 96.43% |
▷ Anonymous functions | 2 | 3.57% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 0.26MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sad.png | 18.16KB | 8.79KB | ▼ 51.62% |
images/miniorange-logo.png | 0.44KB | 0.35KB | ▼ 18.61% |
images/flags16.png | 61.80KB | 19.90KB | ▼ 67.79% |
images/happy.png | 18.06KB | 9.04KB | ▼ 49.98% |
images/3px-tile.png | 2.59KB | 2.42KB | ▼ 6.38% |