Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.68MB] [CPU: ▲8.88ms] 75% from 4 tests
Analyzing server-side resources used by iDNich'
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 557.18ms on /wp-admin/admin.php?page=iDNich_Plugin)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.55 | 45.20 ▲0.99 |
Dashboard /wp-admin | 4.08 ▲0.74 | 71.35 ▲2.73 |
Posts /wp-admin/edit.php | 4.15 ▲0.79 | 70.44 ▲19.58 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.63 | 121.62 ▲12.22 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 60.80 ▲25.66 |
Import /wp-admin/admin.php?page=idnich_plugin_import_translations | 4.05 | 47.48 |
Explore URL /wp-admin/admin.php?page=idnich_plugin_explore | 4.05 | 46.26 |
Visualize /wp-admin/admin.php?page=idnich_plugin_visualize_translations | 4.05 | 48.04 |
Manage /wp-admin/admin.php?page=iDNich_Plugin | 4.05 | 557.18 |
Translation /wp-admin/admin.php?page=idnich_translate | 4.05 | 49.05 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_idnich_imported_translation |
wp_idnich_translation |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
dnich_api_token |
widget_recent-posts |
dnich_keep_list |
dnich_api_url |
theysaidso_admin_options |
db_upgraded |
dnich_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for iDNich'
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲120 | 13.69 ▼0.86 | 1.84 ▼0.22 | 38.21 ▼2.84 |
Dashboard /wp-admin | 2,284 ▲107 | 5.33 ▼0.27 | 106.79 ▲6.56 | 50.65 ▲9.63 |
Posts /wp-admin/edit.php | 2,197 ▲97 | 2.58 ▲0.58 | 48.55 ▲8.88 | 70.80 ▲36.66 |
Add New Post /wp-admin/post-new.php | 1,591 ▲54 | 21.36 ▲2.93 | 686.24 ▲25.92 | 40.88 ▼20.45 |
Media Library /wp-admin/upload.php | 1,493 ▲90 | 4.91 ▲0.72 | 108.00 ▼2.80 | 48.73 ▲0.77 |
Import /wp-admin/admin.php?page=idnich_plugin_import_translations | 1,696 | 2.01 | 37.49 | 79.53 |
Explore URL /wp-admin/admin.php?page=idnich_plugin_explore | 902 | 1.99 | 32.71 | 36.02 |
Visualize /wp-admin/admin.php?page=idnich_plugin_visualize_translations | 912 | 1.99 | 32.26 | 32.65 |
Manage /wp-admin/admin.php?page=iDNich_Plugin | 1,099 | 2.01 | 31.79 | 76.28 |
Translation /wp-admin/admin.php?page=idnich_translate | 1,773 | 1.97 | 34.21 | 87.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- widget_recent-posts
- dnich_keep_list
- dnich_options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=iDNich_Plugin
- > Notice in wp-content/plugins/idnich/controllers/api_controller.php+62
Trying to get property 'question' of non-object
- > GET request to /wp-admin/admin.php?page=iDNich_Plugin
- > Notice in wp-content/plugins/idnich/controllers/api_controller.php+64
Trying to get property 'hash' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/idnich/idnich.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: seo, niches, keywords, concurency, traduction
idnich/idnich.php 92% from 13 tests
The main file in "iDNich'" v. 1.3.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 298 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected4,749 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 540 | 313 | 3,269 |
JavaScript | 1 | 143 | 11 | 806 |
CSS | 1 | 88 | 11 | 673 |
SVG | 1 | 0 | 0 | 1 |
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.44 |
Average class complexity | 63.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 4.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 127 | |
▷ Static methods | 3 | 2.36% |
▷ Public methods | 112 | 88.19% |
▷ Protected methods | 15 | 11.81% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 22 | 100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/iDNich_logo.png | 18.77KB | 5.54KB | ▼ 70.45% |