Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/plagiary-search/core.class.php+1698
Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.35ms] Passed 4 tests
Analyzing server-side resources used by Plagiary Search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.12 ▼7.61 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.49 ▼12.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.65 ▼6.17 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.61 ▼14.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.24 ▲1.85 |
Server storage [IO: ▲1.86MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 164 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_pluginSL_plagiary_search |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Plagiary Search
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.17 ▼0.11 | 1.81 ▲0.15 | 41.18 ▼5.64 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▲0.04 | 82.98 ▼2.37 | 38.04 ▼2.76 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.13 ▲0.13 | 33.47 ▼6.59 | 35.10 ▼4.44 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.87 ▼0.63 | 652.51 ▲7.75 | 69.13 ▲15.82 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.16 ▼0.01 | 93.84 ▼2.60 | 40.43 ▼7.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/plagiary-search/core.class.php+1698
Methods with the same name as their class will not be constructors in a future version of PHP; coreSLframework has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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 everything seems fine, this is not an exhaustive test
SRP 0% 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
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/plagiary-search/plagiary-search.php
- > /wp-content/plugins/plagiary-search/core.class.php
- > /wp-content/plugins/plagiary-search/core.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'core.php' (include_path='.:/usr/share/php') in wp-content/plugins/plagiary-search/core/templates/my-plugin.php on line 18
- > PHP Warning
require_once(core.php): failed to open stream: No such file or directory in wp-content/plugins/plagiary-search/core/templates/my-plugin.php on line 18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Examples of results with proximity images), #2 (Process screen)
plagiary-search/plagiary-search.php 92% from 13 tests
The principal PHP file in "Plagiary Search" v. 1.2.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 200 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin19,177 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,460 | 2,187 | 9,042 |
PO File | 33 | 3,907 | 0 | 8,530 |
JavaScript | 6 | 238 | 251 | 1,031 |
CSS | 10 | 85 | 13 | 459 |
Markdown | 1 | 20 | 0 | 84 |
JSON | 1 | 0 | 0 | 29 |
INI | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 119)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 71.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 444.00 |
Average method complexity | 7.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 119.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 202 | |
▷ Static methods | 35 | 17.33% |
▷ Public methods | 199 | 98.51% |
▷ Protected methods | 3 | 1.49% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
38 PNG files occupy 0.52MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/img/valid.png | 4.34KB | 1.51KB | ▼ 65.32% |
core/img/tab_trad.png | 0.90KB | 1.08KB | 0.00% |
core/img/warning.png | 4.46KB | 1.51KB | ▼ 66.10% |
core/img/error.png | 4.24KB | 1.48KB | ▼ 65.18% |
img/banner-772x250.png | 62.20KB | 23.48KB | ▼ 62.26% |