Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼144.00ms] Passed 4 tests
Analyzing server-side resources used by Hanu-Droid
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 38.06 ▲17.68 |
Dashboard /wp-admin | 3.07 ▲0.02 | 47.37 ▼0.24 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 45.42 ▼1.31 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 88.76 ▼567.38 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 35.23 ▼7.05 |
Hanu-Droid Settings /wp-admin/options-general.php?page=SendGCM | 2.99 | 29.74 |
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: 9 new files
Database: no new tables, 4 new options
New WordPress options |
---|
HanuDroid_Tags |
HanuDroid_Version |
HanuDroid_MaxPost |
HanuDroid_Categories |
Browser metrics Passed 4 tests
An overview of browser requirements for Hanu-Droid
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.92 ▲0.37 | 9.23 ▲0.51 | 47.89 ▼8.61 |
Dashboard /wp-admin | 2,978 ▲47 | 5.84 ▼0.09 | 145.41 ▲3.60 | 105.40 ▼2.07 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.01 | 62.75 ▼3.06 | 87.26 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,686 ▼1,852 | 18.61 ▲3.91 | 408.38 ▼59.34 | 110.75 ▼5.03 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▲0.02 | 161.90 ▲3.33 | 113.33 ▼13.51 |
Hanu-Droid Settings /wp-admin/options-general.php?page=SendGCM | 995 | 2.09 | 57.03 | 78.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/hanu-droid/FetchPosts.php
- > /wp-content/plugins/hanu-droid/FetchPostMeta.php
- > /wp-content/plugins/hanu-droid/UpdatePostRating.php
- > /wp-content/plugins/hanu-droid/PostArtifacts.php
- > /wp-content/plugins/hanu-droid/GetLatestDataTimeStamp.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'Post-Utility/jokes_utility_functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/hanu-droid/NewPost.php on line 20
- > PHP Fatal error
require_once(): Failed opening required 'Post-Utility/jokes_utility_functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/hanu-droid/CreateNewPost.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/hanu-droid/hanudroid.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: native mobile app, android, hanu-droid
hanu-droid/hanudroid.php 92% from 13 tests
The principal PHP file in "Hanu-Droid" v. 2.8 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("hanu-droid.php" instead of "hanudroid.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin684 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 293 | 170 | 684 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 16 | |
▷ Named functions | 16 | 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
PNG images were not found in this plugin