Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼4.39ms] Passed 4 tests
Server-side resources used by Civil Right Defenders - DIDI
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 37.30 ▼3.52 |
Dashboard /wp-admin | 3.42 ▲0.11 | 43.97 ▼6.23 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.74 ▼1.21 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 95.54 ▼6.28 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.58 ▼1.51 |
DiDi – Settings /wp-admin/options-general.php?page=hq-crd-settings | 3.31 | 34.83 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Civil Right Defenders - DIDI
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.23 ▼1.04 | 1.73 ▼0.14 | 41.14 ▼32.25 |
Dashboard /wp-admin | 2,219 ▲34 | 5.86 ▼0.15 | 110.77 ▼17.48 | 42.96 ▼2.01 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.03 ▼0.02 | 41.01 ▲1.12 | 34.47 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,551 ▲17 | 23.23 ▼0.19 | 603.67 ▼58.61 | 59.16 ▲9.36 |
Media Library /wp-admin/upload.php | 1,404 ▲22 | 4.22 ▲0.01 | 98.69 ▼1.00 | 44.52 ▲0.14 |
DiDi – Settings /wp-admin/options-general.php?page=hq-crd-settings | 863 | 2.02 | 26.65 | 28.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
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
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/civil-right-defenders-didi/includes/views/settings.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: hq, crd
civil-right-defenders-didi/hq-crd.php 92% from 13 tests
The main file in "Civil Right Defenders - DIDI" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("civil-right-defenders-didi.php" instead of "hq-crd.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected558 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 91 | 67 | 530 |
XML | 4 | 0 | 0 | 27 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 2.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.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 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
3 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 42.77KB | 21.10KB | ▼ 50.67% |
assets/icon-256x256.png | 4.99KB | 3.38KB | ▼ 32.18% |
assets/screenshot-1.png | 74.38KB | 40.49KB | ▼ 45.56% |