Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.64MB] [CPU: ▼16.47ms] Passed 4 tests
Server-side resources used by Custom fields to api
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.54 ▼2.84 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.14 ▼5.27 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 45.55 ▼3.76 |
Add New Post /wp-admin/post-new.php | 3.22 ▼2.66 | 34.82 ▼54.02 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 41.59 ▲8.42 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Custom fields to api
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.81 ▲0.26 | 1.75 ▼0.12 | 43.37 ▼5.85 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▼0.05 | 100.06 ▼17.03 | 40.80 ▼3.21 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▲0.02 | 38.97 ▲0.33 | 35.35 ▲1.40 |
Add New Post /wp-admin/post-new.php | 45 ▼1,469 | 0.44 ▼17.12 | 0.08 ▼647.43 | 10.05 ▼41.96 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.29 ▲0.12 | 96.13 ▼1.68 | 69.17 ▲25.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- recovery_mode_email_last_sent
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/aliens-sci/aliens-sci.php on line 36
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/aliens-sci/aliens-sci.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/aliens-sci/aliens-sci.php:36
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: api, custom fields
aliens-sci/aliens-sci.php Passed 13 tests
"Custom fields to api" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
Puts all code from Custom fields to api.
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
Success! There were no dangerous files found in this plugin276 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 60 | 25 | 217 |
Markdown | 2 | 19 | 0 | 35 |
PO File | 1 | 5 | 7 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 72.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 28.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin