Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.06MB] [CPU: ▼2.88ms] 75% from 4 tests
Analyzing server-side resources used by Plagium
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 574.88ms on /wp-admin/options-general.php?page=plagium-admin)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 47.10 ▲7.64 |
Dashboard /wp-admin | 3.50 ▲0.19 | 585.39 ▲533.76 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 51.04 ▼5.63 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.38 | 74.68 ▼18.81 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.61 ▲5.29 |
Plagium /wp-admin/options-general.php?page=plagium-admin | 3.37 | 574.88 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Plagium
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.27 ▼1.09 | 1.62 ▼0.51 | 43.18 ▼1.04 |
Dashboard /wp-admin | 2,243 ▲58 | 4.88 ▼0.08 | 101.19 ▼23.73 | 41.50 ▼14.86 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▲0.02 | 37.65 ▼6.21 | 32.48 ▼2.65 |
Add New Post /wp-admin/post-new.php | 6,249 ▲4,714 | 26.29 ▲3.14 | 1,047.97 ▲398.97 | 58.46 ▼7.90 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▲0.00 | 99.79 ▼11.47 | 49.51 ▲1.23 |
Plagium /wp-admin/options-general.php?page=plagium-admin | 947 | 2.17 | 26.26 | 30.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/plagium/plagium.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=plagium-admin
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=plagium-admin - Access to XMLHttpRequest at 'http://www.plagium.com/cfc/oplagiumapi.cfc' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- > GET request to /wp-admin/options-general.php?page=plagium-admin
- > Network (severe)
http://www.plagium.com/cfc/oplagiumapi.cfc - Failed to load resource: net::ERR_FAILED
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: plagio, plagium, duplicate, theft, plagiarism...
plagium/plagium.php Passed 13 tests
The main PHP file in "Plagium" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
131 characters long description:
Plagium is an innovative, fast, and easy-to-use means to check text against possible plagiarism or possible sources of origination.
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
Good job! No executable or dangerous file extensions detected883 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 84 | 16 | 484 |
PHP | 2 | 46 | 14 | 228 |
CSS | 1 | 32 | 8 | 171 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 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 | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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.03MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/plagium.png | 29.29KB | 1.20KB | ▼ 95.91% |