Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.63ms] Passed 4 tests
This is a short check of server-side resources used by Ashuwp invitaion code
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.33 ▼9.28 |
Dashboard /wp-admin | 3.34 ▲0.04 | 55.13 ▼2.90 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 52.23 ▼4.65 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 125.64 ▲33.67 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 42.53 ▲6.32 |
Add New /wp-admin/admin.php?page=invitation_code_add | 3.23 | 30.97 |
Options /wp-admin/admin.php?page=invitation_code_options | 3.23 | 34.79 |
Invitation Codes /wp-admin/admin.php?page=invitation_code | 3.24 | 37.07 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ashuwp_invitation_code |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
ashuwp_invitation_code_version |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Ashuwp invitaion code
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲109 | 13.29 ▲0.13 | 4.82 ▲2.48 | 41.64 ▼49.94 |
Dashboard /wp-admin | 2,312 ▲106 | 5.84 ▲0.01 | 100.47 ▲2.12 | 41.40 ▼0.25 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 1.99 ▼0.05 | 37.08 ▼1.81 | 36.28 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.30 ▲0.07 | 647.21 ▲46.68 | 54.05 ▼6.78 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.23 ▲0.02 | 96.86 ▼14.24 | 42.00 ▼3.30 |
Add New /wp-admin/admin.php?page=invitation_code_add | 898 | 2.07 | 23.63 | 30.90 |
Options /wp-admin/admin.php?page=invitation_code_options | 839 | 2.21 | 24.38 | 32.07 |
Invitation Codes /wp-admin/admin.php?page=invitation_code | 1,050 | 1.72 | 25.83 | 27.88 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ashuwp-invitaion-code/includes/invitation_code_login.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ashuwp-invitaion-code/admin/admin.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/ashuwp-invitaion-code/admin/admin.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ashuwp-invitaion-code/ashuwp_invitation_code.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ashuwp-invitaion-code/tinymce/insert_invitation_code.php:6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ashuwp-invitaion-code/admin/admin.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: register, invitation code
ashuwp-invitaion-code/ashuwp_invitation_code.php 92% from 13 tests
The entry point to "Ashuwp invitaion code" version 1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ashuwp-invitaion-code.php" instead of "ashuwp_invitation_code.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,569 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 219 | 44 | 1,105 |
CSS | 1 | 5 | 0 | 249 |
PO File | 1 | 48 | 56 | 112 |
JavaScript | 1 | 25 | 1 | 103 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 20 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.67% |
Functions | 26 | |
▷ Named functions | 24 | 92.31% |
▷ Anonymous functions | 2 | 7.69% |
Constants | 1 | |
▷ Global constants | 1 | 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
4 PNG files occupy 0.29MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot/screenshot_04.png | 87.36KB | 31.54KB | ▼ 63.90% |
screenshot/screenshot_01.png | 120.31KB | 45.77KB | ▼ 61.96% |
screenshot/screenshot_02.png | 34.99KB | 13.32KB | ▼ 61.93% |
screenshot/screenshot_03.png | 53.92KB | 20.85KB | ▼ 61.32% |