Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▲1.22ms] Passed 4 tests
A check of server-side resources used by Рекламная платформа Native Rent
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 36.11 ▲0.84 |
Dashboard /wp-admin | 3.65 ▲0.34 | 46.51 ▼0.77 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 54.34 ▲7.27 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 97.96 ▲4.69 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 36.79 ▲0.11 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 8 new options
New WordPress options |
---|
nativerent.invalidToken |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
nativerent_version |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Рекламная платформа Native Rent: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲71 | 14.36 ▲0.01 | 1.66 ▼0.08 | 39.79 ▲0.04 |
Dashboard /wp-admin | 2,223 ▲49 | 5.66 ▲0.12 | 81.21 ▼5.57 | 83.88 ▲42.66 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.01 ▼0.02 | 39.15 ▲0.92 | 34.02 ▼4.94 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.57 ▲0.52 | 666.96 ▲29.40 | 45.98 ▼4.88 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.20 ▲0.03 | 92.13 ▼1.41 | 80.88 ▲37.72 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% 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
4 plugin tags: advertising, website income, cpm, marketing
nativerent/nativerent.php 77% from 13 tests
"Рекламная платформа Native Rent" version 1.8.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 489 characters long)
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
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 detected5,532 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 783 | 2,331 | 4,841 |
JavaScript | 4 | 61 | 3 | 469 |
CSS | 1 | 39 | 0 | 189 |
XML | 1 | 6 | 7 | 33 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 24.30 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 211.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 292 | |
▷ Static methods | 154 | 52.74% |
▷ Public methods | 169 | 57.88% |
▷ Protected methods | 35 | 11.99% |
▷ Private methods | 88 | 30.14% |
Functions | 15 | |
▷ Named functions | 9 | 60.00% |
▷ Anonymous functions | 6 | 40.00% |
Constants | 63 | |
▷ Global constants | 8 | 12.70% |
▷ Class constants | 55 | 87.30% |
▷ Public constants | 55 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/static/icon.png | 0.40KB | 0.38KB | ▼ 4.90% |