84% parse-everything

Code Review | Parse Everything

WordPress plugin Parse Everything scored84%from 54 tests.

About plugin

  • Plugin page: parse-everything
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Feb 19, 2021
  • Latest release: Jul 14, 2022
  • Number of updates: 3
  • Update frequency: every 172.0 days
  • Top authors: ioannup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,402 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.33MB] [CPU: ▼0.35ms] Passed 4 tests

A check of server-side resources used by Parse Everything
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3143.24 ▲1.45
Dashboard /wp-admin3.68 ▲0.3845.09 ▼2.41
Posts /wp-admin/edit.php3.73 ▲0.3849.00 ▲2.88
Add New Post /wp-admin/post-new.php6.20 ▲0.3184.88 ▼3.32
Media Library /wp-admin/upload.php3.54 ▲0.3137.49 ▲4.27
All Tasks /wp-admin/edit.php?post_type=parse_everything3.5838.07
Add New /wp-admin/post-new.php?post_type=parse_everything3.5742.41

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 200 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Parse Everything
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.20 ▼1.181.87 ▲0.1644.32 ▲0.02
Dashboard /wp-admin2,233 ▲455.88 ▲0.86105.73 ▼9.9938.99 ▼8.68
Posts /wp-admin/edit.php2,116 ▲272.01 ▼0.0034.66 ▼1.4432.56 ▼2.39
Add New Post /wp-admin/post-new.php1,556 ▲2323.33 ▲0.31675.28 ▲13.9959.38 ▲6.24
Media Library /wp-admin/upload.php1,418 ▲274.24 ▼0.0093.76 ▼5.5945.54 ▲1.35
All Tasks /wp-admin/edit.php?post_type=parse_everything1,0801.9933.3230.64
Add New /wp-admin/post-new.php?post_type=parse_everything2,2303.2370.9838.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • 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 | 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
Please take a closer look at the following
  • 189× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/parse-everything/vendor/coderockr/php-query/src/phpQuery/Zend/Validate/Date.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Validate/Hostname/Interface.php' (include_path='.:/usr/share/php') in wp-content/plugins/parse-everything/vendor/coderockr/php-query/src/phpQuery/Zend/Validate/Hostname/Ch.php on line 27
    • > PHP Fatal error
      Uncaught Error: Class 'TelegramBot\\Api\\BaseType' not found in wp-content/plugins/parse-everything/pro/vendor/telegram-bot/api/src/Types/Inline/ChosenInlineResult.php:15
    • > PHP Notice
      Undefined variable: self in wp-content/plugins/parse-everything/vendor/coderockr/php-query/src/phpQuery/plugins/Scripts/print_source.php on line 8
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Json/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/parse-everything/vendor/coderockr/php-query/src/phpQuery/Zend/Json/Encoder.php on line 25
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Validate/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/parse-everything/vendor/coderockr/php-query/src/phpQuery/Zend/Validate/Identical.php on line 23
    • > PHP Fatal error
      Uncaught Error: Class 'TelegramBot\\Api\\Types\\Inline\\QueryResult\\AbstractInlineQueryResult' not found in wp-content/plugins/parse-everything/pro/vendor/telegram-bot/api/src/Types/Inline/QueryResult/Audio.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'TelegramBot\\Api\\Types\\Inline\\QueryResult\\AbstractInlineQueryResult' not found in wp-content/plugins/parse-everything/pro/vendor/telegram-bot/api/src/Types/Inline/QueryResult/Photo.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'TelegramBot\\Api\\BaseType' not found in wp-content/plugins/parse-everything/pro/vendor/telegram-bot/api/src/Types/Message.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'TelegramBot\\Api\\BaseType' not found in wp-content/plugins/parse-everything/pro/vendor/telegram-bot/api/src/Types/UserProfilePhotos.php:15

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

parse-everything/parse_everything.php 92% from 13 tests

The primary PHP file in "Parse Everything" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("parse-everything.php" instead of "parse_everything.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin16,122 lines of code in 192 files:
LanguageFilesBlank linesComment linesLines of code
PHP1793,02613,54015,540
JSON610213
Markdown5770167
JavaScript1267145
CSS112057

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity13.36
▷ Minimum class complexity1.00
▷ Maximum class complexity555.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces12
Interfaces6
Traits0
Classes168
▷ Abstract classes169.52%
▷ Concrete classes15290.48%
▷ Final classes00.00%
Methods1,415
▷ Static methods22415.83%
▷ Public methods1,29691.59%
▷ Protected methods1047.35%
▷ Private methods151.06%
Functions40
▷ Named functions1435.00%
▷ Anonymous functions2665.00%
Constants126
▷ Global constants43.17%
▷ Class constants12296.83%
▷ Public constants122100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin