Benchmarks
Plugin footprint 83% 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.02MB] [CPU: ▲0.96ms] Passed 4 tests
Analyzing server-side resources used by CTC Rating
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.52 ▲3.39 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.18 ▲4.57 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.40 ▼5.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.65 ▲0.92 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.37 ▲5.43 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ctcRating |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for CTC Rating
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲32 | 13.26 ▼1.60 | 1.85 ▲0.14 | 43.35 ▲0.77 |
Dashboard /wp-admin | 2,216 ▲10 | 4.87 ▼0.98 | 112.86 ▲7.78 | 42.11 ▲3.13 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.03 ▼0.00 | 33.86 ▼1.98 | 32.56 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,568 ▲35 | 23.96 ▲0.79 | 638.35 ▼30.69 | 30.46 ▼23.17 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.18 ▼0.03 | 92.63 ▼15.01 | 43.73 ▼5.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions 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: Call to undefined function plugin_dir_url() in wp-content/plugins/ctc-rating/ctc-rating.php:17
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Rating on frontend), #2 (Gutenberg block), #3 (Users who Liked in modal)
ctc-rating/ctc-rating.php Passed 13 tests
The main PHP script in "CTC Rating" version 1.6.0 is automatically included on every request by WordPress
50 characters long description:
Thumb up and thumb down rating for WordPress post
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
Success! There were no dangerous files found in this plugin16,821 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 16,106 |
JavaScript | 6 | 27 | 104 | 292 |
Sass | 2 | 47 | 0 | 250 |
PHP | 3 | 81 | 67 | 171 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 19.64KB | 6.21KB | ▼ 68.37% |
screenshot-2.png | 65.82KB | 16.94KB | ▼ 74.25% |
screenshot-3.png | 51.59KB | 13.28KB | ▼ 74.26% |