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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.02ms] Passed 4 tests
A check of server-side resources used by Simple Ajax Pagination
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.04 ▼0.56 |
Dashboard /wp-admin | 3.32 ▼0.02 | 43.88 ▼14.45 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.37 ▲1.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 80.01 ▼22.24 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.83 ▲1.67 |
SA Pagination /wp-admin/options-general.php?page=sap-pagination-settings | 3.26 | 31.16 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Ajax Pagination
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲144 | 13.34 ▼1.38 | 7.82 ▲5.78 | 39.66 ▼5.28 |
Dashboard /wp-admin | 2,201 ▲21 | 5.58 ▼0.10 | 80.83 ▼16.36 | 38.09 ▼6.69 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.00 ▼0.02 | 39.81 ▲3.42 | 34.95 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.07 ▲0.02 | 650.84 ▼14.82 | 79.55 ▲24.16 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.23 ▼0.03 | 95.72 ▼19.24 | 41.88 ▼6.31 |
SA Pagination /wp-admin/options-general.php?page=sap-pagination-settings | 902 | 2.03 | 25.35 | 28.76 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/simple-ajax-pagination/includes/admin/sap-settings.tpl.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: ajax pagination, ajax, pagination, wordpress ajax pagination, wordpress ajax
simple-ajax-pagination/simple-ajax-pagination.php Passed 13 tests
"Simple Ajax Pagination" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
44 characters long description:
Simple ajax pagination without any hard code
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin668 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 207 | 19 | 513 |
JSON | 1 | 0 | 0 | 124 |
SVG | 1 | 18 | 0 | 30 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 2 | 40.00% |
Methods | 33 | |
▷ Static methods | 7 | 21.21% |
▷ Public methods | 30 | 90.91% |
▷ Protected methods | 1 | 3.03% |
▷ Private methods | 2 | 6.06% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin