Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.29ms] Passed 4 tests
A check of server-side resources used by Zaki Notifications Hider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.11 ▼1.43 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.16 ▼0.40 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.05 ▲2.57 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.21 ▼17.18 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.37 ▲1.87 |
Notifications Hider /wp-admin/admin.php?page=zaki-notifications-hider | 3.18 | 30.19 |
Zaki Plugins /wp-admin/admin.php?page=zaki | 3.18 | 29.00 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
zaki_notifyhider_options |
Browser metrics Passed 4 tests
A check of browser resources used by Zaki Notifications Hider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲91 | 13.56 ▼0.82 | 1.67 ▲0.17 | 42.82 ▲4.07 |
Dashboard /wp-admin | 2,232 ▲40 | 5.87 ▲0.92 | 109.08 ▼8.57 | 64.19 ▲22.96 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.02 ▲0.03 | 38.38 ▼1.89 | 34.26 ▼1.21 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.13 ▲5.47 | 724.93 ▲121.65 | 59.22 ▲4.47 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.21 ▼0.01 | 94.74 ▼5.10 | 78.45 ▲34.38 |
Notifications Hider /wp-admin/admin.php?page=zaki-notifications-hider | 830 | 2.02 | 26.32 | 34.92 |
Zaki Plugins /wp-admin/admin.php?page=zaki | 801 | 2.02 | 22.91 | 25.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- zaki_notifyhider_options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
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 server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=zaki
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=zaki
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=zaki
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ZakiPlugins::zakiPluginsMainPageHtml() should not be called statically
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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/zaki-notifications-hider/zaki-notifications-hider.php:14
- > 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 Passed 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: update, hide, plugins
zaki-notifications-hider/zaki-notifications-hider.php Passed 13 tests
The entry point to "Zaki Notifications Hider" version 1.0 is a PHP file that has certain tags in its header comment area
76 characters long description:
Plugin that allow you to hide update notifications for each plugin installed
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
Good job! No executable or dangerous file extensions detected133 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 23 | 133 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 3 | |
▷ Static methods | 2 | 66.67% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/zaki-icon.png | 0.34KB | 0.31KB | ▼ 9.12% |