Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.47ms] Passed 4 tests
Server-side resources used by List the S&P 500 Constituents Financials
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 42.23 ▲6.49 |
Dashboard /wp-admin | 3.46 ▲0.12 | 48.41 ▼12.04 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.31 ▼4.12 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 92.19 ▼9.35 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 35.11 ▼0.36 |
Settings S&P 500 /wp-admin/options-general.php?page=settings_snp500_item | 3.30 | 32.06 |
Server storage [IO: ▲1.84MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
mxsapc_columns |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by List the S&P 500 Constituents Financials
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲166 | 14.44 ▼0.02 | 25.42 ▲23.54 | 48.30 ▲4.15 |
Dashboard /wp-admin | 2,211 ▲37 | 5.64 ▲0.10 | 94.94 ▲7.21 | 42.11 ▼1.69 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.01 ▲0.05 | 35.45 ▼0.84 | 31.96 ▼3.32 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 23.73 ▲0.51 | 681.75 ▲22.86 | 56.49 ▲1.98 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.21 ▼0.03 | 107.67 ▲11.76 | 47.91 ▲5.42 |
Settings S&P 500 /wp-admin/options-general.php?page=settings_snp500_item | 930 | 2.14 | 25.57 | 29.98 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- mxsapc_columns
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/list-sp-500-constituents-financials/includes/admin/views/sub-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/list-sp-500-constituents-financials/includes/admin/views/hidemenu-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/list-sp-500-constituents-financials/includes/admin/views/settings-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/list-sp-500-constituents-financials/includes/admin/views/main-page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
6 plugin tags: shares, investment, stocks, sp500, s and p 500...
list-sp-500-constituents-financials/list-sp-500-constituents-financials.php Passed 13 tests
The principal PHP file in "List the S&P 500 Constituents Financials" v. 1.3 is loaded by WordPress automatically on each request
48 characters long description:
The plugin display the list of S&P 500 companies
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected4,052 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 0 | 20 | 2,228 |
PHP | 30 | 674 | 395 | 1,041 |
SVG | 1 | 0 | 0 | 685 |
JavaScript | 5 | 50 | 19 | 65 |
PO File | 1 | 8 | 8 | 33 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 4.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 1 | 4.55% |
▷ Concrete classes | 21 | 95.45% |
▷ Final classes | 1 | 4.76% |
Methods | 64 | |
▷ Static methods | 17 | 26.56% |
▷ Public methods | 64 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
There are no PNG files in this plugin