Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.51ms] 75% from 4 tests
Analyzing server-side resources used by SimpleDRM
The following require your attention
- CPU: You should keep total CPU usage under 500.00ms (currently 5,604.47ms on /wp-admin/options-general.php?page=simpleDRM_options_page)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.34 ▼3.91 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.65 ▼8.28 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.16 ▲0.65 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.72 ▼13.14 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.97 ▼0.71 |
SimpleDRM /wp-admin/options-general.php?page=simpleDRM_options_page | 3.23 | 5,604.47 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
SimpleDRM: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.28 ▼1.30 | 3.84 ▲1.98 | 35.87 ▼9.48 |
Dashboard /wp-admin | 2,210 ▲22 | 5.84 ▲0.97 | 109.32 ▼1.52 | 41.95 ▼0.18 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.01 | 38.56 ▲5.04 | 35.42 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.34 ▲5.80 | 682.43 ▲0.80 | 65.49 ▲13.58 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.19 ▼0.01 | 91.99 ▼2.62 | 41.08 ▼0.24 |
SimpleDRM /wp-admin/options-general.php?page=simpleDRM_options_page | 769 | 2.03 | 24.16 | 26.29 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/simple-drm/simple-drm.php:35
- > 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 errors were detected
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
5 plugin tags: woocommerce plugin, ebook reader, copyright, drm, media distribution
simple-drm/simple-drm.php Passed 13 tests
"SimpleDRM" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
116 characters long description:
DRM protection for downloadable goods (ebooks, videos...) sold by Woocommerce sites, based on the apps by Paradimage
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin477 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 154 | 137 | 352 |
PO File | 2 | 32 | 32 | 125 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 62.00 |
▷ Minimum class complexity | 62.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 27.78% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
There are no PNG files in this plugin