Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼10.22ms] Passed 4 tests
An overview of server-side resources used by MetalpriceAPI
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.72 ▼8.02 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.64 ▼4.56 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.75 ▼6.33 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.29 ▼19.54 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 35.39 ▼6.99 |
Instructions /wp-admin/admin.php?page=info | 3.25 | 31.51 |
Settings /wp-admin/admin.php?page=settings | 3.32 | 39.29 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by MetalpriceAPI
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲106 | 14.79 ▲0.13 | 1.78 ▼0.03 | 37.33 ▲1.05 |
Dashboard /wp-admin | 2,233 ▲42 | 4.84 ▼1.05 | 97.10 ▼7.48 | 40.04 ▼1.13 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.01 ▲0.01 | 34.44 ▼5.53 | 30.03 ▼7.27 |
Add New Post /wp-admin/post-new.php | 1,569 ▲56 | 18.18 ▲0.51 | 600.44 ▼93.14 | 50.46 ▲6.10 |
Media Library /wp-admin/upload.php | 1,418 ▲36 | 4.17 ▼0.05 | 93.72 ▼2.90 | 41.44 ▼2.26 |
Instructions /wp-admin/admin.php?page=info | 1,078 | 2.18 | 21.48 | 30.31 |
Settings /wp-admin/admin.php?page=settings | 2,548 | 10.59 | 229.59 | 76.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/metalpriceapi/module/info.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/metalpriceapi/index.php:22
- > PHP Notice
Undefined variable: is_saved in wp-content/plugins/metalpriceapi/module/settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/metalpriceapi/module/settings.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: metals rates, gold rates, silver rates, metal price api, metals api...
metalpriceapi/index.php 92% from 13 tests
The principal PHP file in "MetalpriceAPI" v. 1.0.7 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("metalpriceapi.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin604 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 62 | 10 | 604 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin