10% gna-crawling-errors

Code Review | GNA Crawling Errors

WordPress plugin GNA Crawling Errors scored10%from 54 tests.

About plugin

  • Plugin page: gna-crawling-errors
  • Plugin version: 0.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7
  • WordPress version: 6.3.1
  • First release: May 27, 2016
  • Latest release: Sep 5, 2016
  • Number of updates: 10
  • Update frequency: every 20.1 days
  • Top authors: chris_dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /910 total downloads

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
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method GNA_CrawlingErrors::activate_handler() should not be called statically

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.26ms] Passed 4 tests

A check of server-side resources used by GNA Crawling Errors
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.06 ▲6.03
Dashboard /wp-admin3.35 ▲0.0551.38 ▼4.10
Posts /wp-admin/edit.php3.47 ▲0.1156.56 ▲7.21
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.46 ▼17.47
Media Library /wp-admin/upload.php3.28 ▲0.0542.36 ▲2.50
Checking /wp-admin/admin.php?page=gna-ce-checking-menu3.6336.24
Settings /wp-admin/admin.php?page=gna-ce-settings-menu3.2635.22

Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

GNA Crawling Errors: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.17 ▼0.201.97 ▲0.0547.94 ▲6.22
Dashboard /wp-admin2,221 ▲415.68 ▲0.0293.95 ▲2.6065.03 ▲22.05
Posts /wp-admin/edit.php2,129 ▲292.01 ▲0.0541.10 ▲2.8135.79 ▲0.51
Add New Post /wp-admin/post-new.php1,563 ▲3723.28 ▲0.07764.18 ▲91.1956.96 ▲0.14
Media Library /wp-admin/upload.php1,417 ▲204.15 ▼0.02117.29 ▲4.2985.40 ▲38.97
Checking /wp-admin/admin.php?page=gna-ce-checking-menu8332.1725.3627.19
Settings /wp-admin/admin.php?page=gna-ce-settings-menu8142.1327.7425.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method GNA_CrawlingErrors::deactivate_handler() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PHPCrawlerCookieCacheBase' not found in wp-content/plugins/gna-crawling-errors/libs/CookieCache/PHPCrawlerSQLiteCookieCache.class.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gna-crawling-errors/inc/gna-crawler-class.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'GNA_CrawlingErrors_Admin_Menu' not found in wp-content/plugins/gna-crawling-errors/admin/gna-crawling-errors-admin-settings-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gna-crawling-errors/inc/gna-crawling-errors-config.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GNA_CrawlingErrors_Admin_Menu' not found in wp-content/plugins/gna-crawling-errors/admin/gna-crawling-errors-admin-checking-menu.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PHPCrawlerURLCacheBase' not found in wp-content/plugins/gna-crawling-errors/libs/UrlCache/PHPCrawlerSQLiteURLCache.class.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'PHPCrawlerURLCacheBase' not found in wp-content/plugins/gna-crawling-errors/libs/UrlCache/PHPCrawlerMemoryURLCache.class.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'PHPCrawlerCookieCacheBase' not found in wp-content/plugins/gna-crawling-errors/libs/CookieCache/PHPCrawlerMemoryCookieCache.class.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Donate link: Invalid url: "none"
You can look at the official readme.txt

gna-crawling-errors/gna-crawling-errors.php Passed 13 tests

This is the main PHP file of "GNA Crawling Errors" version 0.9.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
Easy to check crawling errors of website and export the information to CSV type file

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,730 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP401,1133,5183,728
JavaScript1002

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 code0.29
Average class complexity13.85
▷ Minimum class complexity1.00
▷ Maximum class complexity130.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes39
▷ Abstract classes37.69%
▷ Concrete classes3692.31%
▷ Final classes00.00%
Methods293
▷ Static methods4113.99%
▷ Public methods25787.71%
▷ Protected methods3612.29%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants28
▷ Global constants414.29%
▷ Class constants2485.71%
▷ Public constants24100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/gna_20x20.png2.98KB0.33KB▼ 88.89%