Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼9.23ms] Passed 4 tests
A check of server-side resources used by GET Custom Content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.23 ▲2.24 |
Dashboard /wp-admin | 3.38 ▲0.03 | 49.72 ▼17.28 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.95 ▼2.69 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 89.62 ▼19.18 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 42.22 ▲5.74 |
Custom Content Variables /wp-admin/edit-tags.php?taxonomy=bg_gcc_vars&post_type=bg_gcc_values | 3.30 | 34.14 |
New Value /wp-admin/post-new.php?post_type=bg_gcc_values | 3.43 | 51.88 |
All Values /wp-admin/edit.php?post_type=bg_gcc_values | 3.34 | 38.31 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_gcc_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for GET Custom Content
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.17 ▼0.43 | 1.75 ▲0.07 | 43.15 ▲1.69 |
Dashboard /wp-admin | 2,227 ▲47 | 5.62 ▼0.04 | 95.27 ▲6.42 | 42.53 ▼1.16 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.00 ▲0.01 | 35.25 ▼2.50 | 33.21 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.55 ▲0.54 | 684.98 ▲8.74 | 64.88 ▲11.35 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.29 ▼0.02 | 100.66 ▼9.65 | 50.61 ▲3.96 |
Custom Content Variables /wp-admin/edit-tags.php?taxonomy=bg_gcc_vars&post_type=bg_gcc_values | 1,313 | 2.16 | 28.33 | 29.67 |
New Value /wp-admin/post-new.php?post_type=bg_gcc_values | 2,396 | 7.56 | 177.76 | 64.29 |
All Values /wp-admin/edit.php?post_type=bg_gcc_values | 1,110 | 1.96 | 30.52 | 29.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_gcc_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/get-custom-content/gcc.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: custom content, query variables, urls
get-custom-content/gcc.php 92% from 13 tests
The principal PHP file in "GET Custom Content" v. 1.1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("get-custom-content.php" instead of "gcc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin287 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 26 | 287 |
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.41 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin