78% eorthopod-patient-education-materials

Code Review | eOrthopod Patient Education Materials Plugin

WordPress plugin eOrthopod Patient Education Materials Plugin scored 78% from 54 tests.

About plugin

  • Plugin page: eorthopod-patient...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Nov 22, 2019
  • Latest release: Nov 22, 2019
  • Number of updates: 27
  • Update frequency: every 0.0 days
  • Top authors: flytrapcare.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 513 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▲24.93ms] Passed 4 tests

Server-side resources used by eOrthopod Patient Education Materials Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1676.27 ▲38.62
Dashboard /wp-admin3.41 ▲0.1173.06 ▲22.89
Posts /wp-admin/edit.php3.46 ▲0.1071.49 ▲27.39
Add New Post /wp-admin/post-new.php6.07 ▲0.18115.92 ▲18.24
Media Library /wp-admin/upload.php3.34 ▲0.1163.93 ▲31.20
Add New /wp-admin/post-new.php?post_type=eorthopod_topic6.05107.39
eOrthopod Topics /wp-admin/edit.php?post_type=eorthopod_topic3.6798.57
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=eorthopod_topic3.3565.26

Server storage [IO: ▲0.19MB] [DB: ▲0.20MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
category_children
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

eOrthopod Patient Education Materials Plugin: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,099 ▲36413.67 ▼0.625.13 ▲3.3741.35 ▼4.30
Dashboard /wp-admin2,253 ▲654.85 ▼0.02115.46 ▲6.9143.01 ▲0.54
Posts /wp-admin/edit.php2,476 ▲3841.97 ▼0.0838.19 ▲1.2833.99 ▼2.50
Add New Post /wp-admin/post-new.php1,576 ▲4323.09 ▼0.01659.31 ▼8.7048.95 ▼14.15
Media Library /wp-admin/upload.php1,432 ▲444.30 ▲0.1299.49 ▲2.6745.09 ▲2.99
Add New /wp-admin/post-new.php?post_type=eorthopod_topic1,55817.07911.6032.72
eOrthopod Topics /wp-admin/edit.php?post_type=eorthopod_topic4,1832.0337.5837.22
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=eorthopod_topic2,4412.1428.3537.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • category_children
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/eorthopod-patient-education-materials/eorthopod-content-plugin.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/eorthopod-patient-education-materials/templates/admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: orthopedic library, medical, anatomy, orthopedic content, orthopedic patient education materials...

eorthopod-patient-education-materials/eorthopod-content-plugin.php 92% from 13 tests

The primary PHP file in "eOrthopod Patient Education Materials Plugin" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("eorthopod-patient-education-materials.php" instead of "eorthopod-content-plugin.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
Good job! No executable or dangerous file extensions detected1,829 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
XML1001,582
PHP41571247

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin