Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼148.56ms] Passed 4 tests
A check of server-side resources used by Index Pages
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 33.07 ▲12.61 |
Dashboard /wp-admin | 3.15 ▲0.10 | 43.79 ▼6.39 |
Posts /wp-admin/edit.php | 3.27 ▲0.16 | 45.70 ▲0.52 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 91.44 ▼582.40 |
Media Library /wp-admin/upload.php | 3.10 ▲0.09 | 32.11 ▼5.98 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Index Pages
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 16.25 ▲0.71 | 9.36 ▼1.10 | 45.27 ▼6.16 |
Dashboard /wp-admin | 2,967 ▲36 | 5.93 ▲0.02 | 135.98 ▼8.29 | 116.89 ▼1.85 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 62.26 ▼4.54 | 92.25 ▲2.61 |
Add New Post /wp-admin/post-new.php | 1,615 ▼694 | 22.48 ▲2.71 | 268.51 ▼111.08 | 104.98 ▼5.89 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.02 ▼0.03 | 139.28 ▼0.67 | 115.12 ▼12.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'IndexPages\\Handler' not found in wp-content/plugins/index-pages/includes/class-indexpages-frontend.php:24
- > PHP Fatal error
Uncaught Error: Class 'IndexPages\\Handler' not found in wp-content/plugins/index-pages/includes/class-indexpages-backend.php:23
- > PHP Fatal error
Uncaught Error: Class 'IndexPages\\Handler' not found in wp-content/plugins/index-pages/includes/class-indexpages-liaison.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function IndexPages_Autoloader\\plugin_dir_path() in wp-content/plugins/index-pages/includes/autoloader.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: custom index, index page, custom post type, page for posts
index-pages/index-pages.php Passed 13 tests
The primary PHP file in "Index Pages" version 1.3.0.1 is used by WordPress to initiate all plugin functionality
90 characters long description:
Assign pages as the index page for WordPress custom post types, similar to the Posts Page.
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
Everything looks great! No dangerous files found in this plugin473 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 162 | 735 | 471 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 9.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 5 | 100.00% |
Methods | 33 | |
▷ Static methods | 33 | 100.00% |
▷ Public methods | 32 | 96.97% |
▷ Protected methods | 1 | 3.03% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin