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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.08ms] 75% from 4 tests
Server-side resources used by Aparat
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 664.26ms on /wp-admin/plugin-install.php?s=nipoto&tab=search&type=author)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.87 ▼3.05 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.32 ▼0.52 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.31 ▲0.62 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.25 ▲13.99 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.87 ▲2.63 |
افزونه آپارات /wp-admin/admin.php?page=uxdev | 3.01 | 22.79 |
سایر پلاگینها /wp-admin/plugin-install.php?s=nipoto&tab=search&type=author | 3.35 | 664.26 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Aparat: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲42 | 13.28 ▲0.10 | 1.78 ▼2.63 | 39.89 ▲2.68 |
Dashboard /wp-admin | 2,234 ▲28 | 5.79 ▲0.94 | 94.75 ▼8.75 | 48.03 ▲9.87 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.01 ▲0.02 | 39.86 ▲3.01 | 40.60 ▲7.31 |
Add New Post /wp-admin/post-new.php | 1,570 ▲33 | 18.61 ▼4.55 | 640.37 ▲3.37 | 48.57 ▼0.31 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.28 ▲0.03 | 94.26 ▼5.61 | 47.10 ▲4.08 |
افزونه آپارات /wp-admin/admin.php?page=uxdev | 28 | 0.44 | 0.09 | 3.50 |
سایر پلاگینها /wp-admin/plugin-install.php?s=nipoto&tab=search&type=author | 1,674 | 2.10 | 28.95 | 44.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/aparat/index.php:28
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=uxdev
- > Network (severe)
wp-admin/admin.php?page=uxdev - Failed to load resource: the server responded with a status of 403 (Forbidden)
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
4 plugin tags: video, aparat, clip, responsive
aparat/index.php 92% from 13 tests
The entry point to "Aparat" version 1.7.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("aparat.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected97 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 12 | 71 |
JavaScript | 1 | 4 | 1 | 26 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tinyMCE/aparat.png | 1.59KB | 0.86KB | ▼ 46.02% |