Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.21MB] [CPU: ▼15.45ms] Passed 4 tests
An overview of server-side resources used by rng-ajaxlike
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 35.07 ▼7.03 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.26 ▲4.92 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 44.86 ▲1.71 |
Add New Post /wp-admin/post-new.php | 4.72 ▼1.17 | 45.31 ▼55.32 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.40 ▼1.14 |
Ajax Like Settings /wp-admin/options-general.php?page=ajaxlike-settings | 3.32 | 32.35 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_rajl_mostliked_posts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for rng-ajaxlike
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲174 | 13.86 ▼0.73 | 5.64 ▲3.40 | 44.92 ▼1.44 |
Dashboard /wp-admin | 2,243 ▲55 | 5.25 ▼0.62 | 106.39 ▼22.26 | 41.66 ▼5.45 |
Posts /wp-admin/edit.php | 2,138 ▲46 | 2.33 ▲0.32 | 41.02 ▲1.40 | 33.89 ▼3.70 |
Add New Post /wp-admin/post-new.php | 1,553 ▲11 | 18.28 ▲0.12 | 615.41 ▲10.73 | 34.73 ▼15.71 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.45 ▲0.23 | 98.05 ▼4.41 | 43.48 ▼0.68 |
Ajax Like Settings /wp-admin/options-general.php?page=ajaxlike-settings | 996 | 2.38 | 42.78 | 28.98 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- 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
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/rng-ajaxlike/includes/translate.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: rng-ajaxlike, ajaxlike, like-button
rng-ajaxlike/rng-ajaxLike.php 85% from 13 tests
"rng-ajaxlike" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 192 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rng-ajaxlike.php" instead of "rng-ajaxLike.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
Success! There were no dangerous files found in this plugin826 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 65 | 142 | 466 |
CSS | 3 | 8 | 19 | 202 |
PO File | 1 | 24 | 26 | 75 |
JavaScript | 2 | 1 | 0 | 48 |
Markdown | 1 | 9 | 0 | 23 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 1 | 3.12% |
▷ Public methods | 31 | 96.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.12% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
There are no PNG files in this plugin