Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.52MB] [CPU: ▼18.36ms] Passed 4 tests
An overview of server-side resources used by Plagiarism
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 42.43 ▼2.45 |
Dashboard /wp-admin | 3.88 ▲0.58 | 57.96 ▼4.73 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 51.55 ▲0.50 |
Add New Post /wp-admin/post-new.php | 3.30 ▼2.59 | 38.25 ▼66.74 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 49.29 ▲10.69 |
Plagiarism /wp-admin/options-general.php?page=plagiarism-admin | 3.32 | 34.98 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
plagiarism_editor_required |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Plagiarism
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲121 | 14.34 ▼0.22 | 1.55 ▼0.32 | 39.85 ▼2.15 |
Dashboard /wp-admin | 2,285 ▲111 | 5.64 ▼0.00 | 103.02 ▲2.73 | 57.86 ▲16.70 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.05 | 39.20 ▲3.89 | 35.40 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,577 ▲49 | 20.33 ▼2.88 | 836.07 ▲166.90 | 62.08 ▲5.00 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.16 ▼0.05 | 124.30 ▲26.98 | 54.22 ▲8.24 |
Plagiarism /wp-admin/options-general.php?page=plagiarism-admin | 1,130 | 2.01 | 29.75 | 34.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- plagiarism_editor_required
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=plagiarism-admin
- > Notice in wp-content/plugins/plagiarism/plagiarism.php+644
Undefined index: plagiarism_ispost
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=plagiarism-admin
- > Warning in wp-content/plugins/plagiarism/plagiarism.php+794
Use of undefined constant LANG - assumed 'LANG' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=plagiarism-admin
- > Notice in wp-content/plugins/plagiarism/plagiarism.php+780
Undefined variable: plagiarism_use_proxy
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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/plagiarism/plagiarism.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: panda, page, post, admin, plagiarism...
plagiarism/plagiarism.php 92% from 13 tests
"Plagiarism" version 1.1.0'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:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 260 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected774 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 150 | 23 | 687 |
JavaScript | 2 | 5 | 0 | 49 |
CSS | 1 | 8 | 0 | 38 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 116.00 |
▷ Minimum class complexity | 116.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 5.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 5 | 31.25% |
▷ Class constants | 11 | 68.75% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
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 |
assets/pmiservizi_logo.png | 3.30KB | 1.92KB | ▼ 41.73% |