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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.17ms] Passed 4 tests
An overview of server-side resources used by Zedna Ref Code Generator & Access Gate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.39 ▼7.28 |
Dashboard /wp-admin | 3.40 ▲0.10 | 46.72 ▼5.03 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 56.68 ▲3.78 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 80.32 ▼18.30 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 36.31 ▲1.93 |
Add New /wp-admin/post-new.php?post_type=refcodegatepost | 3.45 | 51.35 |
Used codes /wp-admin/admin.php?page=drcg_zedna_list_used | 3.29 | 32.13 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=refcodegatepost | 3.32 | 36.35 |
Free codes /wp-admin/admin.php?page=drcg_zedna_list_free | 3.29 | 29.12 |
FAQ /wp-admin/admin.php?page=drcg_zedna_faq | 3.29 | 31.67 |
Ref Code Generator /wp-admin/admin.php?page=drcg | 3.31 | 36.75 |
Options /wp-admin/admin.php?page=drcg_zedna_options | 3.29 | 30.85 |
Ref Code Gate post /wp-admin/edit.php?post_type=refcodegatepost | 3.38 | 35.48 |
Code list /wp-admin/admin.php?page=drcg_zedna_list | 3.29 | 32.90 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_refcode |
New WordPress options |
---|
category_children |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Zedna Ref Code Generator & Access Gate: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲167 | 13.30 ▼1.11 | 1.80 ▲0.20 | 45.24 ▲0.37 |
Dashboard /wp-admin | 2,280 ▲106 | 4.86 ▼0.02 | 109.07 ▼3.02 | 40.14 ▲0.23 |
Posts /wp-admin/edit.php | 2,163 ▲71 | 2.00 ▲0.03 | 35.94 ▼4.24 | 32.50 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,574 ▲41 | 17.47 ▼5.56 | 675.70 ▲33.68 | 60.60 ▲7.39 |
Media Library /wp-admin/upload.php | 1,462 ▲74 | 4.18 ▲0.03 | 93.46 ▼5.08 | 41.06 ▼3.46 |
Add New /wp-admin/post-new.php?post_type=refcodegatepost | 2,342 | 7.59 | 184.12 | 72.37 |
Used codes /wp-admin/admin.php?page=drcg_zedna_list_used | 830 | 2.03 | 33.86 | 50.25 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=refcodegatepost | 1,514 | 2.14 | 27.10 | 33.70 |
Free codes /wp-admin/admin.php?page=drcg_zedna_list_free | 830 | 2.03 | 24.27 | 21.13 |
FAQ /wp-admin/admin.php?page=drcg_zedna_faq | 911 | 2.18 | 24.90 | 27.53 |
Ref Code Generator /wp-admin/admin.php?page=drcg | 847 | 2.03 | 23.16 | 25.83 |
Options /wp-admin/admin.php?page=drcg_zedna_options | 935 | 2.06 | 22.76 | 23.39 |
Ref Code Gate post /wp-admin/edit.php?post_type=refcodegatepost | 1,174 | 1.93 | 31.40 | 29.44 |
Code list /wp-admin/admin.php?page=drcg_zedna_list | 849 | 2.03 | 24.80 | 23.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_refcode
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- category_children
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ref-code-generator-access-gate/template/gate.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ref-code-generator-access-gate/drcg.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 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
4 plugin tags: discount, access gate, generator, refference code
ref-code-generator-access-gate/drcg.php 92% from 13 tests
The entry point to "Zedna Ref Code Generator & Access Gate" version 1.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("ref-code-generator-access-gate.php" instead of "drcg.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected525 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 69 | 51 | 525 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected