Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Mediavine_Pagination' does not have a method 'activate'
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.86ms] Passed 4 tests
A check of server-side resources used by Mediavine Pagination
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 49.43 ▲8.93 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.63 ▼0.27 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 48.26 ▼1.49 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 96.09 ▼5.63 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.17 ▼0.06 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
mediavinePagSetting_teaser_font_style |
mediavinePagSetting_teaser_text |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mediavine Pagination
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.35 ▼0.01 | 1.78 ▲0.02 | 46.63 ▲3.68 |
Dashboard /wp-admin | 2,201 ▲24 | 5.54 ▼0.14 | 90.54 ▲0.93 | 40.10 ▼4.00 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.97 ▼0.06 | 39.43 ▼0.57 | 37.35 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.25 ▲0.22 | 676.95 ▼2.38 | 55.92 ▲0.35 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.27 ▲0.11 | 105.99 ▲4.21 | 47.84 ▲3.62 |
Mediavine Pagination /wp-admin/options-general.php?page=mediavine_pagination_pagination_settings | 689 | 1.51 | 6.80 | 21.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Mediavine_Pagination' does not have a method 'deactivate'
- Zombie WordPress options detected upon uninstall: 8 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- mediavinePagSetting_teaser_text
- mediavinePagSetting_teaser_font_style
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/mediavine-pagination/views/settings.php:2
- > PHP Notice
Undefined variable: styles in wp-content/plugins/mediavine-pagination/views/page-nav-style.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mediavine-pagination/views/page-nav-style.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/mediavine-pagination/ui/templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/mediavine-pagination/views/page-nav-style.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mediavine-pagination/mediavine-pagination.php:439
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== mediavine-pagination ===
)
mediavine-pagination/mediavine-pagination.php Passed 13 tests
The main file in "Mediavine Pagination" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
45 characters long description:
Allows for easy styling of pagination blocks.
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 detected1,630 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 101 | 50 | 597 |
PHP | 5 | 87 | 113 | 509 |
HTML | 6 | 23 | 0 | 389 |
CSS | 3 | 31 | 0 | 135 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.12 |
▷ 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 | 27 | |
▷ Static methods | 4 | 14.81% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
PNG images were not found in this plugin