Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'rim_sing_activation' not found or invalid function name
Server metrics [RAM: ▼0.67MB] [CPU: ▼20.95ms] Passed 4 tests
A check of server-side resources used by Rim Signature
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.36 ▲4.73 |
Dashboard /wp-admin | 3.34 ▼0.00 | 46.05 ▼17.57 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 43.77 ▼5.01 |
Add New Post /wp-admin/post-new.php | 3.13 ▼2.76 | 33.05 ▼63.13 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.13 ▲1.90 |
Add New /wp-admin/post-new.php?post_type=rimaz_signature | 3.13 | 30.87 |
Rim Signature /wp-admin/edit.php?post_type=rimaz_signature | 3.31 | 36.16 |
Server storage [IO: ▲0.51MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Rim Signature
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 14.28 ▼0.16 | 1.72 ▲0.09 | 43.80 ▼1.24 |
Dashboard /wp-admin | 2,225 ▲45 | 5.56 ▼0.10 | 85.25 ▼3.94 | 36.09 ▼6.85 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 2.07 ▲0.05 | 37.53 ▲0.19 | 33.43 ▼5.76 |
Add New Post /wp-admin/post-new.php | 1,557 ▲22 | 17.89 ▼0.24 | 615.01 ▼28.97 | 84.04 ▲11.20 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.21 ▲0.02 | 101.77 ▲1.79 | 42.62 ▼4.37 |
Add New /wp-admin/post-new.php?post_type=rimaz_signature | 2,224 | 7.62 | 165.63 | 67.70 |
Rim Signature /wp-admin/edit.php?post_type=rimaz_signature | 1,108 | 1.93 | 34.83 | 30.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'rim_sing_deactivation' not found or invalid function name
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=rimaz_signature
- > Notice in wp-content/plugins/rim-signature/rim_sing.php+172
Undefined index: rim_signature_box_nonce
- > GET request to /wp-admin/post-new.php?post_type=rimaz_signature
- > Notice in wp-content/plugins/rim-signature/rim_sing.php+157
Undefined offset: 0
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/rim-signature/rim_sing.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== rim-signature ===
)
rim-signature/rim_sing.php 85% from 13 tests
The main PHP script in "Rim Signature" version 1.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 285 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("rim-signature.php" instead of "rim_sing.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected442 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 284 |
PHP | 1 | 64 | 28 | 103 |
CSS | 2 | 9 | 25 | 43 |
JavaScript | 2 | 4 | 11 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 10 | |
▷ Named functions | 10 | 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
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/singnature.png | 20.50KB | 1.58KB | ▼ 92.30% |
img/pagination.png | 1.36KB | 0.58KB | ▼ 57.53% |