10% goarch-online-chapel-daily-xml-feed-parser

Code Review | GOARCH Online Chapel Parser

WordPress plugin GOARCH Online Chapel Parser scored10%from 54 tests.

About plugin

  • Plugin page: goarch-online-cha...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2015
  • Latest release: Oct 25, 2015
  • Number of updates: 8
  • Update frequency: every 16.8 days
  • Top authors: gornycreative (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /926 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/goarch-online-chapel-daily-xml-feed-parser/online-chapel-xml-parser.php+33
    file_get_contents(): Filename cannot be empty

Server metrics [RAM: ▼1.96MB] [CPU: ▼21.14ms] Passed 4 tests

Analyzing server-side resources used by GOARCH Online Chapel Parser
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.4334.55 ▼6.25
Dashboard /wp-admin2.05 ▼1.2535.23 ▼14.31
Posts /wp-admin/edit.php2.05 ▼1.3031.59 ▼19.06
Add New Post /wp-admin/post-new.php2.05 ▼3.8443.67 ▼44.94
Media Library /wp-admin/upload.php2.05 ▼1.1834.24 ▼2.95

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_oc_parser_plugin
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for GOARCH Online Chapel Parser
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.081.79 ▲0.0337.39 ▼3.04
Dashboard /wp-admin2,200 ▲85.79 ▲0.84100.54 ▼10.3838.88 ▼6.47
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0239.53 ▼2.4034.38 ▼6.80
Add New Post /wp-admin/post-new.php1,514 ▼1517.43 ▼5.55663.70 ▼19.7757.36 ▲4.36
Media Library /wp-admin/upload.php1,391 ▲64.16 ▼0.1094.40 ▼11.8841.84 ▼4.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/goarch-online-chapel-daily-xml-feed-parser/online-chapel-xml-parser.php+202
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_oc_parser_plugin
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/goarch-online-chapel-daily-xml-feed-parser/online-chapel-xml-parser.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === goarch-online-chapel-daily-xml-feed-parser === )
The official readme.txt is a good inspiration

goarch-online-chapel-daily-xml-feed-parser/online-chapel-xml-parser.php 85% from 13 tests

Analyzing the main PHP file in "GOARCH Online Chapel Parser" version 0.1.1
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 298 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("goarch-online-chapel-daily-xml-feed-parser.php" instead of "online-chapel-xml-parser.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin278 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15228203
XML10075

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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