Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.09ms] Passed 4 tests
An overview of server-side resources used by Yappa Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.19 ▼6.23 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.82 ▼2.85 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.65 ▼2.59 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.41 ▼4.68 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.30 ▲1.74 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Yappa Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲106 | 13.52 ▼1.13 | 1.96 ▼0.29 | 41.54 ▼2.45 |
Dashboard /wp-admin | 2,222 ▲37 | 5.85 ▲1.01 | 107.99 ▼7.25 | 37.52 ▼5.79 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.06 ▲0.01 | 35.55 ▼6.11 | 32.77 ▼2.78 |
Add New Post /wp-admin/post-new.php | 1,550 ▲13 | 23.13 ▼0.13 | 674.64 ▲28.74 | 62.58 ▲12.49 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.20 ▼0.06 | 94.89 ▼8.92 | 40.92 ▼2.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: spam, widget, community, comments, notification...
yappa-widget/yappa-widget.php Passed 13 tests
This is the main PHP file of "Yappa Widget" version 1.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Plugins that inserts the Yappa Widget into posts or pages
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin221 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 67 | 14 | 153 |
JavaScript | 1 | 4 | 0 | 27 |
CSS | 1 | 7 | 0 | 26 |
Markdown | 1 | 7 | 0 | 15 |
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.42 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin