Benchmarks
Plugin footprint 48% 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: ▼1.20MB] [CPU: ▼48.23ms] Passed 4 tests
Analyzing server-side resources used by Emag Profitshare
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.68 | 13.74 ▼26.57 |
Dashboard /wp-admin | 2.82 ▼0.53 | 18.40 ▼47.55 |
Posts /wp-admin/edit.php | 2.82 ▼0.54 | 18.27 ▼31.31 |
Add New Post /wp-admin/post-new.php | 2.82 ▼3.07 | 16.95 ▼87.49 |
Media Library /wp-admin/upload.php | 2.82 ▼0.41 | 16.73 ▼15.21 |
Setări Profitshare /wp-admin/options-general.php?page=profitshare/index.php | 2.82 | 15.57 |
Server storage [IO: ▲0.02MB] [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: 2 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ntz_referral |
New WordPress options |
---|
ntz_referral_version |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Emag Profitshare
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.23 ▼1.01 | 1.73 ▼0.18 | 40.33 ▼3.81 |
Dashboard /wp-admin | 2,213 ▲25 | 4.83 ▼0.26 | 103.08 ▼4.87 | 41.33 ▼5.94 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 39.55 ▲2.19 | 35.91 ▲0.39 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.53 ▼5.71 | 675.11 ▲71.29 | 63.57 ▲9.80 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.28 ▲0.07 | 96.95 ▲1.47 | 42.67 ▼1.48 |
Setări Profitshare /wp-admin/options-general.php?page=profitshare/index.php | 892 | 2.02 | 25.31 | 41.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/profitshare/index.php+58
Undefined index: quick_generator
- Zombie tables were found after uninstall: 1 table
- wp_ntz_referral
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- ntz_referral_version
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=profitshare/index.php
- > Notice in wp-content/plugins/profitshare/index.php+58
Undefined index: quick_generator
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=profitshare/index.php
- > Notice in wp-content/plugins/profitshare/index.php+185
Undefined index: short_links
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=profitshare/index.php
- > Notice in wp-content/plugins/profitshare/index.php+233
Trying to access array offset on value of type bool
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 fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/profitshare/index.php:433
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Contributors: The plugin contributors field is missing
profitshare/index.php 92% from 13 tests
"Emag Profitshare" version 2.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("profitshare.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
There were no executable files found in this plugin359 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 48 | 27 | 359 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
No PNG images were found in this plugin