Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼7.20ms] Passed 4 tests
Server-side resources used by Module Pager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 43.81 ▼0.94 |
Dashboard /wp-admin | 3.40 ▲0.09 | 46.04 ▼9.77 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.58 ▲8.19 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.76 ▼18.39 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.55 ▲0.29 |
ページネーション設定 /wp-admin/options-general.php?page=wp-module-pager-menu-slug | 3.36 | 41.06 |
Server storage [IO: ▲2.71MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 61 new files
Database: no new tables, 11 new options
New WordPress options |
---|
wp-module-pager_option_db_range |
widget_theysaidso_widget |
wp-module-pager_option_db_all |
widget_recent-posts |
wp-module-pager_option_db_next |
theysaidso_admin_options |
widget_recent-comments |
wp-module-pager_option_db_prev |
can_compress_scripts |
wp-module-pager_option_db_li |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Module Pager
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.25 ▼1.01 | 1.87 ▲0.04 | 41.88 ▼2.44 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼0.20 | 104.68 ▲2.50 | 46.51 ▲6.25 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 1.99 ▲0.00 | 40.62 ▼0.36 | 40.59 ▲3.76 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.15 ▲4.99 | 602.43 ▼8.48 | 49.07 ▼12.86 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.16 ▼0.11 | 95.81 ▲1.49 | 43.86 ▲1.45 |
ページネーション設定 /wp-admin/options-general.php?page=wp-module-pager-menu-slug | 1,348 | 10.64 | 162.02 | 126.31 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 11 options
- widget_theysaidso_widget
- wp-module-pager_option_db_prev
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- wp-module-pager_option_db_next
- widget_recent-posts
- wp-module-pager_option_db_range
- wp-module-pager_option_db_all
- wp-module-pager_option_db_li
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Exception' not found in wp-content/plugins/module-pager/lib/Mustache/Exception/UnknownTemplateException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Logger' not found in wp-content/plugins/module-pager/lib/Mustache/Logger/AbstractLogger.php:21
- > PHP Fatal error
Uncaught Error: Class 'Mustache_Cache_AbstractCache' not found in wp-content/plugins/module-pager/lib/Mustache/Cache/NoopCache.php:18
- > PHP Fatal error
Uncaught Error: Class 'Mustache_Loader_FilesystemLoader' not found in wp-content/plugins/module-pager/lib/Mustache/Loader/ProductionFilesystemLoader.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Cache' not found in wp-content/plugins/module-pager/lib/Mustache/Cache/AbstractCache.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/module-pager/lib/Mustache/Loader/FilesystemLoader.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/module-pager/admin/partials/wp-module-pager-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/module-pager/lib/Mustache/Loader/StringLoader.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Source' not found in wp-content/plugins/module-pager/lib/Mustache/Source/FilesystemSource.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Mustache_Loader' not found in wp-content/plugins/module-pager/lib/Mustache/Loader/ArrayLoader.php:27
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 15 tag instead of maximum 10
module-pager/wp-module-pager.php 85% from 13 tests
The main PHP file in "Module Pager" ver. 1.6.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("module-pager.php" instead of "wp-module-pager.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected49,802 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 6,454 | 4,926 | 46,895 |
PHP | 48 | 685 | 2,666 | 2,856 |
CSS | 3 | 5 | 8 | 51 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 3 | 8.33% |
▷ Concrete classes | 33 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 212 | |
▷ Static methods | 8 | 3.77% |
▷ Public methods | 154 | 72.64% |
▷ Protected methods | 15 | 7.08% |
▷ Private methods | 43 | 20.28% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 65 | |
▷ Global constants | 1 | 1.54% |
▷ Class constants | 64 | 98.46% |
▷ Public constants | 64 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin