Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.05MB] [CPU: ▼14.56ms] Passed 4 tests
Analyzing server-side resources used by Posts Navigation Links for Sections and Headings - Free by WP Masters
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 37.72 ▲2.39 |
Dashboard /wp-admin | 3.64 ▲0.33 | 45.83 ▼0.80 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 48.33 ▼2.29 |
Add New Post /wp-admin/post-new.php | 4.86 ▼1.02 | 44.67 ▼57.54 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 38.38 ▲5.19 |
Server storage [IO: ▲4.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Posts Navigation Links for Sections and Headings - Free by WP Masters
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 15.93 ▲1.34 | 6.48 ▲4.66 | 42.06 ▼1.10 |
Dashboard /wp-admin | 2,240 ▲52 | 6.66 ▲1.75 | 126.10 ▲20.54 | 41.44 ▼0.92 |
Posts /wp-admin/edit.php | 2,126 ▲34 | 4.09 ▲2.04 | 51.10 ▲9.09 | 36.95 ▲0.90 |
Add New Post /wp-admin/post-new.php | 6,321 ▲4,779 | 27.73 ▲9.26 | 918.55 ▲295.56 | 37.53 ▼18.18 |
Media Library /wp-admin/upload.php | 1,422 ▲40 | 6.71 ▲2.52 | 119.01 ▲23.93 | 46.03 ▲1.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/posts-navigation-links-for-sections-and-headings-free-by-wp-masters/templates/admin/settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/posts-navigation-links-for-sections-and-headings-free-by-wp-masters/wpm-post-navigation-links.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: seo links content, title links, anchor title, smooth scroll to title, content links
posts-navigation-links-for-sections-and-headings-free-by-wp-masters/wpm-post-navigation-links.php 85% from 13 tests
The principal PHP file in "Posts Navigation Links for Sections and Headings - Free by WP Masters" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("posts-navigation-links-for-sections-and-headings-free-by-wp-masters.php" instead of "wpm-post-navigation-links.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected15,127 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,552 |
JavaScript | 5 | 331 | 206 | 2,154 |
PHP | 4 | 382 | 350 | 2,025 |
CSS | 5 | 194 | 31 | 1,396 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 131.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 5.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 1 | 1.02% |
▷ Public methods | 83 | 84.69% |
▷ Protected methods | 15 | 15.31% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 23 | |
▷ Global constants | 23 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/assets/img/logo.png | 11.32KB | 4.55KB | ▼ 59.79% |