Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼10.35ms] Passed 4 tests
Server-side resources used by WP Ajax Loadmore
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 43.95 ▲0.75 |
Dashboard /wp-admin | 3.39 ▲0.04 | 50.19 ▼18.61 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 50.12 ▼5.16 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 88.78 ▼17.56 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.00 ▼0.06 |
All loadmore /wp-admin/edit.php?post_type=ajaxloadmore | 3.35 | 40.80 |
Add New /wp-admin/post-new.php?post_type=ajaxloadmore | 3.37 | 51.46 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Ajax Loadmore
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲157 | 13.39 ▼0.73 | 8.90 ▲6.91 | 37.67 ▼4.36 |
Dashboard /wp-admin | 2,216 ▲45 | 5.54 ▲0.01 | 86.34 ▼1.21 | 41.81 ▼0.50 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▼0.01 | 37.23 ▲2.44 | 37.69 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,551 ▲14 | 21.17 ▲3.13 | 647.96 ▼16.22 | 58.88 ▼8.95 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.20 ▼0.06 | 96.41 ▼8.47 | 46.83 ▲2.21 |
All loadmore /wp-admin/edit.php?post_type=ajaxloadmore | 1,104 | 1.94 | 35.40 | 30.78 |
Add New /wp-admin/post-new.php?post_type=ajaxloadmore | 2,038 | 3.94 | 104.31 | 63.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-ajax-loadmore/inc/loader.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-ajax-loadmore/wp-ajax-loadmore.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: loadmore, ajax
wp-ajax-loadmore/wp-ajax-loadmore.php Passed 13 tests
The main file in "WP Ajax Loadmore" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
21 characters long description:
Load Post using ajax.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected290 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 69 | 232 |
JavaScript | 1 | 3 | 2 | 39 |
Markdown | 1 | 5 | 0 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 54.97KB | 23.51KB | ▼ 57.24% |