Benchmarks
Plugin footprint 65% 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: ▼4.57ms] Passed 4 tests
Analyzing server-side resources used by API Log Pro
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.17 ▲0.50 |
Dashboard /wp-admin | 3.42 ▲0.11 | 45.37 ▼5.23 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 42.85 ▼7.76 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 88.53 ▼3.72 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 32.71 ▼1.56 |
Server storage [IO: ▲0.18MB] [DB: ▲0.41MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_api_log_pro |
wp_api_log_pro_meta |
wp_api_log_pro_outgoing |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for API Log Pro
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.62 ▼1.01 | 1.67 ▼0.28 | 41.46 ▼6.50 |
Dashboard /wp-admin | 2,225 ▲37 | 5.85 ▼0.01 | 98.61 ▼15.65 | 42.14 ▼1.91 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.00 ▲0.03 | 36.11 ▼0.94 | 35.76 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,546 ▲10 | 23.43 ▲0.23 | 657.66 ▲33.71 | 46.22 ▼8.86 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.21 ▲0.01 | 100.18 ▲5.66 | 44.17 ▲2.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_api_log_pro_outgoing
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: api, json api, logging, wp api, rest api...
api-log-pro/class-api-log-pro.php 85% from 13 tests
The primary PHP file in "API Log Pro" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("api-log-pro.php" instead of "class-api-log-pro.php")
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
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
There were no executable files found in this plugin1,298 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 346 | 443 | 747 |
JavaScript | 4 | 33 | 27 | 361 |
CSS | 4 | 24 | 15 | 137 |
YAML | 1 | 0 | 0 | 28 |
Markdown | 2 | 9 | 0 | 25 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 46 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin