Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▲875.79ms] 75% from 4 tests
Server-side resources used by AJ Stock
The following require your attention
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 875.79ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.33 | 1,288.26 ▲1,224.99 |
Dashboard /wp-admin | 3.68 ▲0.27 | 1,232.48 ▲1,147.12 |
Posts /wp-admin/edit.php | 3.91 ▲0.27 | 1,222.14 ▲1,178.04 |
Add New Post /wp-admin/post-new.php | 7.21 ▲0.24 | 1,250.64 ▼5.61 |
Media Library /wp-admin/upload.php | 3.63 ▲0.34 | 1,213.69 ▲1,183.61 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 44 new files
Database: 4 new tables, 2 new options
New tables |
---|
wp_ajsi_stock_log |
wp_ajsi_stock_1m |
wp_ajsi_stock_1d |
wp_ajsi_stock_data |
New WordPress options |
---|
widget_aj_stock_price |
ajsi_db_version |
Browser metrics Passed 4 tests
Checking browser requirements for AJ Stock
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,936 ▲193 | 16.39 ▲0.72 | 10.16 ▲4.49 | 2.63 ▲0.58 |
Dashboard /wp-admin | 2,918 ▲57 | 6.19 ▲0.01 | 133.25 ▼17.88 | 252.38 ▲84.63 |
Posts /wp-admin/edit.php | 2,716 ▲22 | 3.24 ▼0.11 | 66.10 ▲0.48 | 149.45 ▲7.67 |
Add New Post /wp-admin/post-new.php | 1,738 ▲77 | 19.98 ▲3.91 | 343.78 ▼110.99 | 183.78 ▼6.59 |
Media Library /wp-admin/upload.php | 1,723 ▲25 | 5.69 ▲0.22 | 130.36 ▼15.31 | 271.71 ▲39.54 |
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
Please fix the following items
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_ajsi_stock_1m
- wp_ajsi_stock_log
- wp_ajsi_stock_data
- wp_ajsi_stock_1d
- Zombie WordPress options were found after uninstall: 2 options
- widget_aj_stock_price
- ajsi_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/aj-stock/aj-stock.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aj-stock/function.php:2
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: A description for screenshot #5 is required in aj-stock/assets to your readme.txt
- Donate link: Invalid URI found ("")
aj-stock/aj-stock.php Passed 13 tests
The entry point to "AJ Stock" version 0.9.2 is a PHP file that has certain tags in its header comment area
47 characters long description:
주가 정보를 보여주는 Plugin 입니다.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,376 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 435 | 414 | 3,217 |
JavaScript | 6 | 82 | 60 | 688 |
CSS | 4 | 38 | 9 | 432 |
XML | 1 | 0 | 0 | 37 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 101.75 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 246.00 |
Average method complexity | 5.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 1 | 1.02% |
▷ Public methods | 83 | 84.69% |
▷ Protected methods | 15 | 15.31% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 35 | 97.22% |
▷ Anonymous functions | 1 | 2.78% |
Constants | 41 | |
▷ Global constants | 41 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/aj-stock-chart.png | 12.19KB | 5.03KB | ▼ 58.74% |
aj-stock-48-48-Icon.png | 6.15KB | 1.94KB | ▼ 68.46% |
aj-stock-18-18-Icon.png | 3.54KB | 0.92KB | ▼ 74.12% |
views/skins/basic_1/images/bohap.png | 1.66KB | 0.13KB | ▼ 92.21% |
views/skins/basic_1/images/down.png | 1.96KB | 0.41KB | ▼ 79.18% |