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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.35MB] [CPU: ▲7.98ms] Passed 4 tests
Server-side resources used by Ahrefs SEO
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.66 ▲1.19 | 46.22 ▲2.94 |
Dashboard /wp-admin | 4.71 ▲1.40 | 55.71 ▲6.37 |
Posts /wp-admin/edit.php | 4.82 ▲1.46 | 63.05 ▲13.15 |
Add New Post /wp-admin/post-new.php | 7.29 ▲1.40 | 104.85 ▲15.99 |
Media Library /wp-admin/upload.php | 4.63 ▲1.40 | 45.73 ▲9.47 |
Server storage [IO: ▲9.84MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 1,519 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_ahrefs_seo_content |
wp_ahrefs_seo_snapshots |
New WordPress options |
---|
db_upgraded |
ahrefs-seo-last-hash |
theysaidso_admin_options |
widget_recent-posts |
ahrefs-seo-content-rules-version |
widget_theysaidso_widget |
ahrefs-seo-db-version |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Ahrefs SEO
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲55 | 14.77 ▲0.06 | 1.72 ▲0.09 | 36.49 ▼10.74 |
Dashboard /wp-admin | 2,226 ▲46 | 5.63 ▲0.03 | 85.06 ▼14.36 | 37.75 ▼8.18 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.05 ▲0.03 | 40.49 ▲2.54 | 37.13 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.85 ▲0.86 | 618.30 ▼76.53 | 62.68 ▲5.55 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.25 ▲0.04 | 103.89 ▼9.93 | 41.60 ▼6.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- category_children
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ahrefs-seo/php7/templates/parts/options/scope/section-close.php
- > /wp-content/plugins/ahrefs-seo/php5/templates/headers/footer.php
- > /wp-content/plugins/ahrefs-seo/php7/templates/parts/loader/settings-end.php
- > /wp-content/plugins/ahrefs-seo/php5/templates/parts/loader/settings-end.php
- > /wp-content/plugins/ahrefs-seo/php5/templates/parts/content-tips/footer-hidden.php
- > /wp-content/plugins/ahrefs-seo/php7/templates/headers/footer.php
- > /wp-content/plugins/ahrefs-seo/php7/templates/parts/content-tips/footer-hidden.php
- > /wp-content/plugins/ahrefs-seo/php5/templates/parts/options/scope/section-close.php
- 1011× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'ahrefs\\AhrefsSeo_Vendor\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/ahrefs-seo/vendor-prefixed/guzzlehttp/psr7/src/DroppingStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'ahrefs\\AhrefsSeo_Vendor\\Google\\Collection' not found in wp-content/plugins/ahrefs-seo/vendor-prefixed/google/apiclient-services/src/SearchConsole/IndexStatusInspectionResult.php:20
- > PHP Fatal error
Uncaught Error: Class 'ahrefs\\AhrefsSeo\\Ahrefs_Seo_View' not found in wp-content/plugins/ahrefs-seo/php5/templates/parts/action-parts/table-positions.php:6
- > PHP Fatal error
Uncaught Error: Class 'ahrefs\\AhrefsSeo_Vendor\\Google\\Client' not found in wp-content/plugins/ahrefs-seo/php7/class-google-proxy-client.php:36
- > PHP Fatal error
Uncaught Error: Class 'ahrefs\\AhrefsSeo\\Ahrefs_Seo_View' not found in wp-content/plugins/ahrefs-seo/php5/templates/parts/action-steps/merge.php:5
- > PHP Fatal error
Uncaught Error: Class 'ahrefs\\AhrefsSeo_Vendor\\Google\\Model' not found in wp-content/plugins/ahrefs-seo/vendor-prefixed/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaGoogleSignalsSettings.php:20
- > PHP Fatal error
Uncaught Error: Class 'ahrefs\\AhrefsSeo_Vendor\\Google\\Model' not found in wp-content/plugins/ahrefs-seo/vendor-prefixed/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse.php:20
- > PHP Fatal error
Uncaught Error: Class 'ahrefs\\AhrefsSeo_Vendor\\Google\\Collection' not found in wp-content/plugins/ahrefs-seo/vendor-prefixed/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter.php:20
- > PHP Fatal error
Uncaught Error: Class 'ahrefs\\AhrefsSeo_Vendor\\Google\\Model' not found in wp-content/plugins/ahrefs-seo/vendor-prefixed/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessStringFilter.php:20
- > PHP Fatal error
Uncaught Error: Class 'ahrefs\\AhrefsSeo_Vendor\\Google\\Service' not found in wp-content/plugins/ahrefs-seo/vendor-prefixed/google/apiclient-services/src/AnalyticsReporting.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
10 plugin tags: google analytics, blog audit, seo, ahrefs, site audit...
ahrefs-seo/ahrefs-plugin.php 92% from 13 tests
The main PHP file in "Ahrefs SEO" ver. 0.10.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ahrefs-seo.php" instead of "ahrefs-plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected157,768 lines of code in 1,431 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,352 | 5,820 | 75,894 | 144,771 |
Markdown | 35 | 1,837 | 0 | 5,234 |
CSS | 2 | 252 | 40 | 4,433 |
JavaScript | 4 | 94 | 313 | 3,112 |
SVG | 37 | 1 | 0 | 212 |
JSON | 1 | 0 | 0 | 6 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 13.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 644.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 80 | |
Interfaces | 49 | |
Traits | 12 | |
Classes | 1,037 | |
▷ Abstract classes | 31 | 2.99% |
▷ Concrete classes | 1,006 | 97.01% |
▷ Final classes | 34 | 3.38% |
Methods | 8,568 | |
▷ Static methods | 682 | 7.96% |
▷ Public methods | 7,542 | 88.03% |
▷ Protected methods | 504 | 5.88% |
▷ Private methods | 522 | 6.09% |
Functions | 425 | |
▷ Named functions | 119 | 28.00% |
▷ Anonymous functions | 306 | 72.00% |
Constants | 1,027 | |
▷ Global constants | 91 | 8.86% |
▷ Class constants | 936 | 91.14% |
▷ Public constants | 837 | 89.42% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.20MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ahrefs-connect-2x.png | 53.27KB | 22.10KB | ▼ 58.52% |
assets/images/chart-bg.png | 38.81KB | 9.11KB | ▼ 76.53% |
assets/images/ahrefs-connect-3x.png | 83.68KB | 33.81KB | ▼ 59.60% |
assets/images/ahrefs-connect.png | 24.95KB | 10.62KB | ▼ 57.42% |