Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/wp-scroll-posts/wp-scroll-posts.php+13
Use of undefined constant wpsp_nop - assumed 'wpsp_nop' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.42ms] Passed 4 tests
This is a short check of server-side resources used by wp scroll posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.16 ▼5.97 |
Dashboard /wp-admin | 3.41 ▲0.10 | 45.23 ▼1.82 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.13 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 87.52 ▼7.94 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.08 ▲3.64 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 23 new options
New WordPress options |
---|
can_compress_scripts |
wpsp_thumbnail_enable |
widget_theysaidso_widget |
widget_scroll_post_sp |
theysaidso_admin_options |
db_upgraded |
wpsp_direction |
wpsp_c_len |
wpsp_speed |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by wp scroll posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲188 | 13.95 ▼0.60 | 4.78 ▲2.69 | 41.06 ▼4.17 |
Dashboard /wp-admin | 2,221 ▲30 | 5.80 ▼0.10 | 105.40 ▲1.63 | 75.92 ▲28.99 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.98 ▼0.05 | 35.39 ▼6.17 | 29.68 ▼3.05 |
Add New Post /wp-admin/post-new.php | 1,680 ▲149 | 22.49 ▲4.31 | 740.74 ▲140.24 | 53.97 ▼14.74 |
Media Library /wp-admin/upload.php | 1,406 ▲24 | 4.21 ▲0.01 | 98.22 ▼4.02 | 75.21 ▲32.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_scroll_post_sp
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 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 register_activation_hook() in wp-content/plugins/wp-scroll-posts/wp-scroll-posts.php:32
- > 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 issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (User view after installation), #2 (Admin setting page)
wp-scroll-posts/wp-scroll-posts.php Passed 13 tests
Analyzing the main PHP file in "wp scroll posts" version 0.6
133 characters long description:
Scrolls any category posts up/down in widget , page or post, have shortcode [wpsp],[wpsp cat='CategoryName'], with multiple instance
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
Everything looks great! No dangerous files found in this plugin502 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 98 | 29 | 373 |
JavaScript | 1 | 39 | 19 | 119 |
CSS | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ 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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.18MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screenshot_2.png | 70.93KB | 25.92KB | ▼ 63.45% |
images/icon.png | 3.46KB | 0.64KB | ▼ 81.51% |
screenshot-2.png | 70.93KB | 25.92KB | ▼ 63.45% |
Screenshot_1.png | 17.47KB | 7.31KB | ▼ 58.18% |
screenshot-1.png | 17.47KB | 7.31KB | ▼ 58.18% |